cleaner path display for the termianl prompt
This commit is contained in:
parent
a8017a0b06
commit
d7c00e8dad
1 changed files with 6 additions and 0 deletions
6
.zshrc
6
.zshrc
|
@ -27,6 +27,12 @@ bindkey "$terminfo[cud1]" history-substring-search-down
|
|||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
# override prompt builder for the dir part
|
||||
# render just the last dir name
|
||||
prompt_dir() {
|
||||
prompt_segment blue black '%1~'
|
||||
}
|
||||
|
||||
if [[ `uname` == 'Darwin' ]]; then
|
||||
alias vim=/usr/local/Cellar/vim/7.4/bin/vim
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue