Fix fzf commands
This commit is contained in:
@@ -9,9 +9,9 @@ export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help
|
||||
export MISE_HOME=$HOME/.local/share/mise/installs
|
||||
|
||||
# fzf
|
||||
export FZF_DEFAULT_COMMAND="fdfind --hidden --type file --strip-cwd-prefix --exclude .git"
|
||||
export FZF_DEFAULT_COMMAND="fd --hidden --type file --strip-cwd-prefix --exclude .git"
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_ALT_C_COMMAND="fdfind --hidden --type directory --strip-cwd-prefix --exclude .git"
|
||||
export FZF_ALT_C_COMMAND="fd --hidden --type directory --strip-cwd-prefix --exclude .git"
|
||||
# Export Catppuccin Mocha theme for FZF
|
||||
export FZF_DEFAULT_OPTS=" \
|
||||
--height 60% --layout=reverse --border \
|
||||
|
||||
14
zsh/.zshrc
14
zsh/.zshrc
@@ -1,6 +1,3 @@
|
||||
|
||||
# read second
|
||||
|
||||
export ZSH_HOME="$HOME/.zsh"
|
||||
|
||||
# source global shell alias & variables files
|
||||
@@ -46,16 +43,7 @@ autoload run-help
|
||||
source <(fzf --zsh) # allow for fzf history widget
|
||||
|
||||
# binds
|
||||
bindkey "^a" beginning-of-line
|
||||
bindkey "^e" end-of-line
|
||||
bindkey "^k" kill-line
|
||||
bindkey "^j" backward-word
|
||||
bindkey "^k" forward-word
|
||||
bindkey "^H" backward-kill-word
|
||||
# ctrl J & K for going up and down in prev commands
|
||||
bindkey "^J" history-search-forward
|
||||
bindkey "^K" history-search-backward
|
||||
bindkey '^R' fzf-history-widget
|
||||
bindkey -e
|
||||
|
||||
# set up prompt
|
||||
NEWLINE=$'\n'
|
||||
|
||||
Reference in New Issue
Block a user