From 8afe42c5c542de188fd01194caa52434c9fe2582 Mon Sep 17 00:00:00 2001 From: William Ball Date: Sun, 5 Apr 2026 19:48:25 -0400 Subject: [PATCH] zsh tweaks --- zsh/.config/zsh/.zshrc | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 444dda6..0fca8b0 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -22,15 +22,15 @@ setopt HIST_IGNORE_DUPS setopt HIST_REDUCE_BLANKS setopt HIST_FIND_NO_DUPS -function fzf-history-widget() { - local selected_command=$(history -rn 1 | fzf --preview 'echo {}' --preview-window=down:3:wrap) - if [[ -n $selected_command ]]; then - LBUFFER="$selected_command" - fi - zle reset-prompt -} -zle -N fzf-history-widget -bindkey '^R' fzf-history-widget +# options +setopt autocd auto_param_slash +setopt interactive_comments + +# disable C-s +stty stop undef + +# fzf +source <(fzf --zsh) # Enable command completion autoload -Uz compinit && compinit @@ -44,10 +44,5 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh -# zoxide -eval "$(zoxide init zsh)" - -# prompt -eval "$(starship init zsh)" - -[ -f "/home/wball/.local/share/ghcup/env" ] && . "/home/wball/.local/share/ghcup/env" # ghcup-env +PROMPT="[%F{#83a598}%n %F{#b8bb26}%~%f] %F{#8ec07c}λ%f " +RPROMPT="[%F{#d79921}%?%f]"