diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-06-10 14:17:02 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-06-10 14:17:02 +0200 |
commit | 6311d923946c9410f887fece7c373877048ff7b7 (patch) | |
tree | c94a356adf26f9ea15c31923f401e986e902292d /.zshrc | |
parent | 20f3004c62addcf8224fcf6cfbc161b397ebe285 (diff) | |
download | dotfiles-6311d923946c9410f887fece7c373877048ff7b7.tar.gz dotfiles-6311d923946c9410f887fece7c373877048ff7b7.tar.xz |
zshrc: disable extended_history; set default locale; remove git branch
from prompt
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -8,6 +8,8 @@ stty -echo ZDOTDIR="$HOME/.zsh" +export LC_ALL=en_US.utf8 + export PATH=$HOME/bin:$PATH if [[ -d $HOME/misc/scripts ]]; then export PATH=${HOME}/misc/scripts:${PATH} @@ -214,12 +216,7 @@ prompt_eof_setup() { prompt_eof_setup "$@" # }}} # Prompt {{{ -EXITCODE="%(?..(%?%1) )" -# function to show the current git branch in prompt -parse_git_branch() { - git branch 2> /dev/null | sed -n 's/\* \(.*\)/\(\1\)/p' -} # necessary if you want to use functions in the prompt # without this they wouldn't be run again #precmd () { @@ -232,11 +229,9 @@ else fi local host_color=$p_GREEN local path_color=$p_BLUE -local gitbranch_color=$p_magenta -local exitcode_color=$p_red PROMPT="${username_color}$USERNAME${p_nc}@${host_color}%m${p_nc}\ - ${path_color}%~${p_nc} ${gitbranch_color}"'$(parse_git_branch)'"${p_nc} -${exitcode_color}$EXITCODE${p_nc}> " + ${path_color}%~${p_nc} +> " #} ## Spelling prompt @@ -552,9 +547,10 @@ setopt inc_append_history setopt no_bg_nice setopt share_history setopt bang_hist -setopt extended_history +setopt no_extended_history setopt hist_reduce_blanks setopt hist_ignore_space +setopt hist_find_no_dups setopt nohistverify setopt prompt_subst setopt hist_fcntl_lock |