chore: support nnn

main
sudo pacman -Syu 2023-04-19 16:58:24 +07:00
parent 7f47379353
commit 71ee0580b8
1 changed files with 23 additions and 12 deletions

View File

@ -46,17 +46,19 @@ export GOPRIVATE=github.com/make-go-great,github.com/haunt98
# fzf
# https://github.com/junegunn/fzf#environment-variables
if command -v fd &>/dev/null; then
export FZF_DEFAULT_COMMAND="fd --type file"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type directory"
fi
if command -v fzf &>/dev/null; then
if command -v fd &>/dev/null; then
export FZF_DEFAULT_COMMAND="fd --type file"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type directory"
fi
# https://github.com/catppuccin/fzf
export FZF_DEFAULT_OPTS=" \
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
# https://github.com/catppuccin/fzf
export FZF_DEFAULT_OPTS=" \
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
fi
# Alias
alias g="git"
@ -68,16 +70,25 @@ if command -v zellij &>/dev/null; then
fi
# https://sw.kovidgoyal.net/kitty/faq/
alias kssh="kitty +kitten ssh"
if command -v kitty &>/dev/null; then
alias kssh="kitty +kitten ssh"
fi
# https://restic.readthedocs.io/en/latest/manual_rest.html
export RESTIC_PASSWORD_FILE=$HOME/.restic_password_file
if command -v restic &>/dev/null; then
export RESTIC_PASSWORD_FILE=$HOME/.restic_password_file
fi
# https://github.com/sharkdp/vivid
if command -v vivid &>/dev/null; then
export LS_COLORS="$(vivid generate catppuccin-mocha)"
fi
# https://github.com/jarun/nnn
if command -v nnn &>/dev/null; then
export NNN_FIFO=/tmp/nnn.fifo
fi
# https://github.com/dylanaraps/pfetch
if command -v pfetch &>/dev/null; then
pfetch