Better integration between fzf and zsh
This commit is contained in:
10
zsh/.zshenv
10
zsh/.zshenv
@@ -1,8 +1,8 @@
|
||||
export DOTFILES="$HOME/.dotfiles"
|
||||
export EDITOR=nvim
|
||||
export FZF_CTRL_T_COMMAND="fd --hidden --type file --exclude .git"
|
||||
export FZF_ALT_C_COMMAND="fd --hidden --type directory --exclude .git"
|
||||
export FZF_CTRL_R_OPTS="--preview 'echo {}'"
|
||||
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="fd --hidden --type directory --strip-cwd-prefix --exclude .git"
|
||||
# Export Catppuccin Mocha theme for FZF
|
||||
export FZF_DEFAULT_OPTS=" \
|
||||
--height 60% --layout=reverse --border \
|
||||
@@ -11,7 +11,9 @@ export FZF_DEFAULT_OPTS=" \
|
||||
--color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
|
||||
--color=selected-bg:#45475A \
|
||||
--color=border:#313244,label:#CDD6F4"
|
||||
export FZF_HOME=$HOME/.oh-my-zsh/custom/plugins/fzf
|
||||
export FZF_TMUX_OPTS=" -p90%,70%"
|
||||
export FZF_CTRL_T_OPTS="--preview 'bat --color=always -n --line-range :500 {}'"
|
||||
export FZF_ALT_C_OPTS="--preview 'eza --treee --color=always {} | head -200'"
|
||||
export GOPATH="$HOME/.local/share/Go"
|
||||
export GOBIN=$GOPATH/bin
|
||||
export GRAALVM_HOME="${HOME}/.local/share/mise/installs/java/graalvm-community-23.0.1"
|
||||
|
||||
Reference in New Issue
Block a user