Improve zsh vi-mode

This commit is contained in:
Henrik Lissner 2013-08-02 16:23:37 -04:00
parent 4b70bc8f0e
commit 11662a6ec5
3 changed files with 12 additions and 3 deletions

View file

@ -3,3 +3,7 @@
My mac and debian/ubuntu dotfiles.
Yes. They bite.
## ZSH
![My ZSH Prompt](https://dl.dropboxusercontent.com/u/2908279/public/zsh.png)

View file

@ -46,4 +46,8 @@ COMPLETION_WAITING_DOTS="true"
zle -N edit-command-line
bindkey '^f' edit-command-line
bindkey '^w' backward-kill-word
bindkey '^a' beginning-of-line
bindkey '^e' end-of-line
# vim:set ft=zsh:

View file

@ -47,8 +47,8 @@ prompt() {
# The prompt
echo -n "%{$fg[red]%}"
echo -n "%{$FX[bold]%}"
echo -n " \$ "
echo -n "%{$FX[no-bold]%}"
echo -n ' $ '
echo -n "%{$reset_color%}"
}
@ -66,7 +66,8 @@ rprompt() {
echo -n "%{$reset_color%}"
}
PROMPT="$(prompt)"
PROMPT="
$(prompt)"
RPROMPT="$(rprompt)"
# vim:set ft=zsh: