update
This commit is contained in:
commit
b8233471ab
5 files changed
+153
No files matched your search
@@ -0,0 +1,75 @@
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.zsh_history
|
||||
SAVEHIST=500000
|
||||
HISTSIZE=$SAVEHIST+100000
|
||||
|
||||
setopt APPEND_HISTORY
|
||||
setopt HIST_EXPIRE_DUPS_FIRST
|
||||
setopt HIST_IGNORE_DUPS
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
setopt HIST_IGNORE_SPACE
|
||||
zshaddhistory() { whence ${${(z)1}[1]} >| /dev/null || return 1 }
|
||||
|
||||
unsetopt beep
|
||||
# cat > /dev/null test keys
|
||||
# zle -al list all commands
|
||||
bindkey -e #emacs
|
||||
bindkey "^[[3~" delete-char #Delete
|
||||
bindkey "^[[H" beginning-of-line #Home
|
||||
bindkey "^[[F" end-of-line #End
|
||||
bindkey "^[[5~" history-search-backward #PgUp
|
||||
bindkey "^[[6~" history-search-forward #PgDn
|
||||
bindkey "^[[1;5C" vi-forward-word #C-right
|
||||
bindkey "^[[1;5D" vi-backward-word #C-left
|
||||
bindkey "^H" vi-backward-kill-word #C-Backspace
|
||||
bindkey "^[[3;5~" delete-word #C-Delete
|
||||
# End of lines configured by zsh-newuser-install
|
||||
|
||||
|
||||
# The following lines were added by compinstall
|
||||
zstyle ':completion:*' menu select
|
||||
zstyle ':completion::complete:*' gain-privileges 1
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'l:|=* r:|=*' 'r:|[._-]=* r:|=*'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
|
||||
|
||||
autoload -Uz promptinit
|
||||
promptinit
|
||||
|
||||
|
||||
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
|
||||
export FZF_DEFAULT_COMMAND='fdfind --strip-cwd-prefix --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_ALT_C_COMMAND='fdfind --type d --strip-cwd-prefix --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache'
|
||||
_fzf_compgen_path() {
|
||||
fdfind --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1"
|
||||
}
|
||||
_fzf_compgen_dir() {
|
||||
fdfind --type d --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1"
|
||||
}
|
||||
source /usr/share/doc/fzf/examples/completion.zsh
|
||||
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||
|
||||
prompt fire
|
||||
|
||||
|
||||
export PATH=$HOME/.yarn/bin:$HOME/.local/bin:$PATH
|
||||
|
||||
export MANPAGER="sh -c 'col -bx|batcat -l man -p'"
|
||||
alias cat="batcat -pp"
|
||||
alias h="batcat -pl help"
|
||||
help(){
|
||||
"$@" --help 2>&1 | h
|
||||
}
|
||||
|
||||
alias c=clear
|
||||
alias ls=exa
|
||||
alias l="ls -lhg"
|
||||
alias ll="ls -alhg"
|
||||
|
||||
Reference in new issue
Block a user