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/plugins.zsh"
|
||||
|
||||
PS1="%F{38}[%n@%m %F{45}%B%~%b%f%F{38}]%f$ "
|
||||
TIMEFMT=$'real\t%E\nuser\t%U\nsys\t%S'
|
||||
EDITOR="nvim"
|
||||
ViSUAL_EDITOR="nvim"
|
||||
export PS1="%F{38}[%n@%m %F{45}%B%~%b%f%F{38}]%f$ "
|
||||
export TIMEFMT=$'real\t%E\nuser\t%U\nsys\t%S'
|
||||
export EDITOR="nvim"
|
||||
export ViSUAL_EDITOR="nvim"
|
||||
|
||||
# Bind Ctrl-left/right arrow to move back/formward one word
|
||||
# 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
|
||||
# https://stackoverflow.com/a/8645267
|
||||
bindkey "^[[1;5C" forward-word
|
||||
bindkey "^[[1;5D" backward-word
|
||||
bindkey "^[[H" beginning-of-line
|
||||
bindkey "^[[F" end-of-line
|
||||
bindkey "^[[3~" delete-char
|
||||
bindkey "^[[H" beginning-of-line
|
||||
bindkey "^[[F" end-of-line
|
||||
bindkey "^[[3~" delete-char
|
||||
|
||||
# Enable the autocompletion and make it case insensitive
|
||||
# https://superuser.com/a/1092328
|
||||
|
@ -8,7 +8,6 @@ SAVEHIST=$HISTSIZE
|
||||
|
||||
HISTDUP=erase
|
||||
setopt appendhistory
|
||||
setopt sharehistory
|
||||
setopt hist_ignore_space
|
||||
setopt hist_ignore_all_dups
|
||||
setopt hist_save_no_dups
|
||||
|
Loading…
x
Reference in New Issue
Block a user