improve zsh conf
This commit is contained in:
@ -16,3 +16,5 @@ if [[ -n "$MACHINE_TYPE" && -f "$HOME/dotfiles/zsh/hosts/$MACHINE_TYPE.zsh" ]];
|
||||
fi
|
||||
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
||||
|
||||
export SDL_AUDIODRIVER=pipewire
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
HISTFILE="$HOME/.zsh_history"
|
||||
HISTSIZE=50000
|
||||
SAVEHOST=50000
|
||||
# setopt share_history # persist, and share live across open shells
|
||||
setopt inc_append_history # history of session appended to HISTFILE after session ends
|
||||
setopt share_history # persist, and share live across open shells
|
||||
# setopt inc_append_history # history of session appended to HISTFILE after session ends
|
||||
setopt extended_history # record timestamps
|
||||
setopt hist_ignore_dups # drop a command identical to the one before it
|
||||
setopt hist_ignore_space # don't record commands typed with a leading space
|
||||
@ -56,7 +56,10 @@ ZSH_PLUGINS_DIR="$HOME/.zsh/plugins"
|
||||
source "$ZSH_PLUGINS_DIR/zsh_autosuggestions/zsh-autosuggestions.zsh"
|
||||
source "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
|
||||
bindkey '^H' backward-kill-word
|
||||
bindkey '^H' backward-kill-word # Ctrl+Backspace - delete word
|
||||
bindkey '^[[3;5~' kill-word # Ctrl+Delete - delete forward word
|
||||
bindkey '^[[1;5C' forward-word # Ctrl+Right - jump forward a word
|
||||
bindkey '^[[1;5D' backward-word # Ctrl+Left - jump backward a word
|
||||
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
|
||||
@ -1 +1,2 @@
|
||||
export FZF_CTRL_R_OPTS="--layout=reverse"
|
||||
source <(fzf --zsh)
|
||||
|
||||
Reference in New Issue
Block a user