Fixed some zsh behaviours
This commit is contained in:
parent
4d84a8b1f7
commit
69cc991e0b
@ -2,21 +2,23 @@ source "$ZDOTDIR/history.zsh"
|
|||||||
source "$ZDOTDIR/alias.zsh"
|
source "$ZDOTDIR/alias.zsh"
|
||||||
source "$ZDOTDIR/plugins.zsh"
|
source "$ZDOTDIR/plugins.zsh"
|
||||||
|
|
||||||
PS1="%F{38}[%n@%m %F{45}%B%~%b%f%F{38}]%f$ "
|
export PS1="%F{38}[%n@%m %F{45}%B%~%b%f%F{38}]%f$ "
|
||||||
TIMEFMT=$'real\t%E\nuser\t%U\nsys\t%S'
|
export TIMEFMT=$'real\t%E\nuser\t%U\nsys\t%S'
|
||||||
EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
ViSUAL_EDITOR="nvim"
|
export ViSUAL_EDITOR="nvim"
|
||||||
|
|
||||||
# Bind Ctrl-left/right arrow to move back/formward one word
|
# Bind Ctrl-left/right arrow to move back/formward one word
|
||||||
# https://unix.stackexchange.com/a/140499
|
# https://unix.stackexchange.com/a/140499
|
||||||
#
|
bindkey "^[[1;5C" vi-forward-word
|
||||||
|
bindkey "^[[1;6C" vi-forward-word
|
||||||
|
bindkey "^[[1;5D" vi-backward-word
|
||||||
|
bindkey "^[[1;6D" vi-backward-word
|
||||||
|
|
||||||
# Bind Canc, Home and End to the right functions
|
# Bind Canc, Home and End to the right functions
|
||||||
# https://stackoverflow.com/a/8645267
|
# https://stackoverflow.com/a/8645267
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[H" beginning-of-line
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[F" end-of-line
|
||||||
bindkey "^[[H" beginning-of-line
|
bindkey "^[[3~" delete-char
|
||||||
bindkey "^[[F" end-of-line
|
|
||||||
bindkey "^[[3~" delete-char
|
|
||||||
|
|
||||||
# Enable the autocompletion and make it case insensitive
|
# Enable the autocompletion and make it case insensitive
|
||||||
# https://superuser.com/a/1092328
|
# https://superuser.com/a/1092328
|
||||||
|
@ -8,7 +8,6 @@ SAVEHIST=$HISTSIZE
|
|||||||
|
|
||||||
HISTDUP=erase
|
HISTDUP=erase
|
||||||
setopt appendhistory
|
setopt appendhistory
|
||||||
setopt sharehistory
|
|
||||||
setopt hist_ignore_space
|
setopt hist_ignore_space
|
||||||
setopt hist_ignore_all_dups
|
setopt hist_ignore_all_dups
|
||||||
setopt hist_save_no_dups
|
setopt hist_save_no_dups
|
||||||
|
Loading…
x
Reference in New Issue
Block a user