From a418ab3e36964cf76c107f6dc569bc6adc34f70a Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Fri, 12 Jun 2015 15:18:30 +0100 Subject: [PATCH] Add escapes and $HOME instead of ~ --- zsh/zshrc | 0 zsh/zshrc.symlink | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 zsh/zshrc diff --git a/zsh/zshrc b/zsh/zshrc new file mode 100644 index 0000000..e69de29 diff --git a/zsh/zshrc.symlink b/zsh/zshrc.symlink index b3bbaef..e221869 100644 --- a/zsh/zshrc.symlink +++ b/zsh/zshrc.symlink @@ -19,15 +19,15 @@ PATH="/usr/local/Cellar/ruby/$RUBY_VERSION/bin$PATH" PATH="/usr/texbin:$PATH" # Local path -PATH="~/.config/bin:$PATH" +PATH="$HOME/.config/bin:$PATH" # Composer (PHP) -PATH="~/.composer/vendor/bin:$PATH" +PATH="$HOME/.composer/vendor/bin:$PATH" ## Completion # 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. autoload compinit @@ -206,8 +206,8 @@ function zle-line-init zle-keymap-select () { set-editing-mode "$RESULT" COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]" - PS1="$(command whoami)@$COLOR$(nice-hostname)$reset_color in %1d$(git-prompt-info) -[$COLOR$(get-editing-mode)$reset_color]→ " + PS1="$(command whoami)@%{$COLOR%}$(nice-hostname)%{$reset_color%} in %1d$(git-prompt-info) +[%{$COLOR%}$(get-editing-mode)%{$reset_color%}]→ " zle reset-prompt }