Add backspace to zshrc
This commit is contained in:
@@ -25,6 +25,7 @@ alias listfonts="fc-list :scalable=true:spacing=mono: family"
|
|||||||
alias cachefonts="fc-cache -f -v"
|
alias cachefonts="fc-cache -f -v"
|
||||||
|
|
||||||
alias w="vim ~/vimwiki/index.md"
|
alias w="vim ~/vimwiki/index.md"
|
||||||
|
alias r="ranger"
|
||||||
|
|
||||||
alias l='ls -lFh' #size,show type,human readable
|
alias l='ls -lFh' #size,show type,human readable
|
||||||
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
||||||
@@ -43,7 +44,6 @@ alias gl="git pull"
|
|||||||
alias gp="git push"
|
alias gp="git push"
|
||||||
alias glog="git log --oneline --decorate --graph"
|
alias glog="git log --oneline --decorate --graph"
|
||||||
|
|
||||||
|
|
||||||
## Local Aliases
|
## Local Aliases
|
||||||
if [ -f ~/.zshrc_local ]; then
|
if [ -f ~/.zshrc_local ]; then
|
||||||
source ~/.zshrc_local
|
source ~/.zshrc_local
|
||||||
@@ -57,16 +57,13 @@ setopt complete_in_word
|
|||||||
setopt always_to_end
|
setopt always_to_end
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -C
|
||||||
|
_comp_options+=(globdots)
|
||||||
|
|
||||||
# Case Insensitive completion
|
# Case Insensitive completion
|
||||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
|
|
||||||
autoload -Uz compinit
|
|
||||||
|
|
||||||
for dump in ~/.zcompdump(N.mh+24); do
|
|
||||||
compinit
|
|
||||||
done
|
|
||||||
compinit -C
|
|
||||||
|
|
||||||
## Directory navigation
|
## Directory navigation
|
||||||
setopt autocd autopushd
|
setopt autocd autopushd
|
||||||
|
|
||||||
@@ -95,6 +92,10 @@ fi
|
|||||||
|
|
||||||
## vi-mode
|
## vi-mode
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
export KEYTIMEOUT=1
|
||||||
|
|
||||||
|
# Enable backspace to delete in vi-mode
|
||||||
|
bindkey -v '^?' backward-delete-char
|
||||||
|
|
||||||
## fzf
|
## fzf
|
||||||
export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --bind=btab:up'
|
export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --bind=btab:up'
|
||||||
|
|||||||
Reference in New Issue
Block a user