diff options
Diffstat (limited to 'bash')
-rw-r--r-- | bash/env.profile | 1 | ||||
-rw-r--r-- | bash/prompt.bash | 12 | ||||
-rw-r--r-- | bash/ssh-agent.profile | 1 |
3 files changed, 9 insertions, 5 deletions
diff --git a/bash/env.profile b/bash/env.profile index ceb0b92..380bdf2 100644 --- a/bash/env.profile +++ b/bash/env.profile @@ -9,6 +9,7 @@ function appendpath() { appendpath "$HOME/bin" appendpath "$DOTFILEBASE/scripts" +appendpath "$HOME/.local/bin" export PATH unset appendpath diff --git a/bash/prompt.bash b/bash/prompt.bash index 2510ea5..c4c77fc 100644 --- a/bash/prompt.bash +++ b/bash/prompt.bash @@ -2,11 +2,13 @@ function prompt_command () { local EXIT="$?" - if [ $EXIT -eq 0 ]; then - EXIT="" - fi - #PS1="\n${cyan}\h:$(virtualenv_prompt) ${reset_color} ${yellow}\w ${green}$(scm_prompt_info)\n${red}${EXIT} ${reset_color}→ " - PS1="\n${cyan}\h: ${reset_color} ${yellow}\w \n${red}${EXIT} ${reset_color}→ " + local REMOTE="" + + [ $EXIT -eq 0 ] && EXIT="" + [ ! -z "$SSH_CONNECTION" ] && REMOTE="${orange}[R] " + + #PS1="\n${REMOTE}${cyan}\h:$(virtualenv_prompt) ${reset_color} ${yellow}\w ${green}$(scm_prompt_info)\n${red}${EXIT} ${reset_color}→ " + PS1="\n${REMOTE}${cyan}\h: ${reset_color} ${yellow}\w \n${red}${EXIT} ${reset_color}→ " } PROMPT_COMMAND=prompt_command diff --git a/bash/ssh-agent.profile b/bash/ssh-agent.profile new file mode 100644 index 0000000..4360eb4 --- /dev/null +++ b/bash/ssh-agent.profile @@ -0,0 +1 @@ +eval `ssh-agent` |