Add escapes and $HOME instead of ~

This commit is contained in:
Max Bucknell 2015-06-12 15:18:30 +01:00
parent 0d790ed4dd
commit a418ab3e36
2 changed files with 5 additions and 5 deletions

0
zsh/zshrc Normal file
View file

View file

@ -19,15 +19,15 @@ PATH="/usr/local/Cellar/ruby/$RUBY_VERSION/bin$PATH"
PATH="/usr/texbin:$PATH" PATH="/usr/texbin:$PATH"
# Local path # Local path
PATH="~/.config/bin:$PATH" PATH="$HOME/.config/bin:$PATH"
# Composer (PHP) # Composer (PHP)
PATH="~/.composer/vendor/bin:$PATH" PATH="$HOME/.composer/vendor/bin:$PATH"
## Completion ## Completion
# Load up the extra Z Shell completions # Load up the extra Z Shell completions
fpath=("~/.zsh/zsh-completions/src" $fpath) fpath=("$HOME/.zsh/zsh-completions/src" $fpath)
# Ensure we can run the compinit to make them work. # Ensure we can run the compinit to make them work.
autoload compinit autoload compinit
@ -206,8 +206,8 @@ function zle-line-init zle-keymap-select () {
set-editing-mode "$RESULT" set-editing-mode "$RESULT"
COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]" COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]"
PS1="$(command whoami)@$COLOR$(nice-hostname)$reset_color in %1d$(git-prompt-info) PS1="$(command whoami)@%{$COLOR%}$(nice-hostname)%{$reset_color%} in %1d$(git-prompt-info)
[$COLOR$(get-editing-mode)$reset_color]→ " [%{$COLOR%}$(get-editing-mode)%{$reset_color%}]→ "
zle reset-prompt zle reset-prompt
} }