Improve zsh vi-mode
This commit is contained in:
parent
4b70bc8f0e
commit
11662a6ec5
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue