Skip to content

Commit f7409bd

Browse files
committed
feat(zsh): add new key binding and new color scheme for fzf.
1 parent e14eaec commit f7409bd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

module/zsh/zshrc

+4-5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ alias txls="tmux list-sessions"
5454
bindkey '^[[A' history-beginning-search-backward
5555
bindkey '^[[B' history-beginning-search-forward
5656

57+
# Delete from the beginning of the line to the cursor position
58+
bindkey \^U backward-kill-line
59+
5760
###############################################################################
5861
# Options
5962
###############################################################################
@@ -75,10 +78,6 @@ zstyle ':completion:*:messages' format '%d'
7578
zstyle ':completion:*:descriptions' format '%B%d%b'
7679
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
7780

78-
# Editor
79-
export EDITOR=nvim
80-
export VISUAL=nvim
81-
8281
# History
8382
HISTFILE=$HOME/.zhistory
8483
HISTSIZE=1000
@@ -98,7 +97,7 @@ eval "$(/opt/homebrew/bin/brew shellenv 2> /dev/null)"
9897
# Normal priority
9998
# ↳ Fzf
10099
export FZF_ALT_C_COMMAND='find . -type d | sed '\''s/^.\///'\'''
101-
export FZF_DEFAULT_OPTS='--height 30% -m --border --reverse --prompt="❯ " --pointer="❯" --marker="❯" --color="prompt:15,spinner:203,info:203,marker:203,pointer:51"'
100+
export FZF_DEFAULT_OPTS='--height 30% -m --border --reverse --prompt="❯ " --pointer="❯" --marker="❯" --color="prompt:15,spinner:#fe605a,info:#fe605a,marker:#fe605a,pointer:#60f6ff"'
102101
source $HOME/.nix-profile/share/fzf/completion.zsh 2> /dev/null
103102
source $HOME/.nix-profile/share/fzf/key-bindings.zsh 2> /dev/null
104103
# ↳ Git

0 commit comments

Comments
 (0)