improve zsh conf

This commit is contained in:
Johannes Knopp
2026-07-01 17:18:21 +02:00
parent 5ad06b3c9e
commit 3a1899cae1
5 changed files with 15 additions and 5 deletions

View File

@ -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

View File

@ -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)"

View File

@ -1 +1,2 @@
export FZF_CTRL_R_OPTS="--layout=reverse"
source <(fzf --zsh)