chore: support nnn
parent
7f47379353
commit
71ee0580b8
|
@ -46,17 +46,19 @@ export GOPRIVATE=github.com/make-go-great,github.com/haunt98
|
||||||
|
|
||||||
# fzf
|
# fzf
|
||||||
# https://github.com/junegunn/fzf#environment-variables
|
# https://github.com/junegunn/fzf#environment-variables
|
||||||
if command -v fd &>/dev/null; then
|
if command -v fzf &>/dev/null; then
|
||||||
export FZF_DEFAULT_COMMAND="fd --type file"
|
if command -v fd &>/dev/null; then
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
export FZF_DEFAULT_COMMAND="fd --type file"
|
||||||
export FZF_ALT_C_COMMAND="fd --type directory"
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
fi
|
export FZF_ALT_C_COMMAND="fd --type directory"
|
||||||
|
fi
|
||||||
|
|
||||||
# https://github.com/catppuccin/fzf
|
# https://github.com/catppuccin/fzf
|
||||||
export FZF_DEFAULT_OPTS=" \
|
export FZF_DEFAULT_OPTS=" \
|
||||||
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
|
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
|
||||||
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
|
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
|
||||||
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
|
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
|
||||||
|
fi
|
||||||
|
|
||||||
# Alias
|
# Alias
|
||||||
alias g="git"
|
alias g="git"
|
||||||
|
@ -68,16 +70,25 @@ if command -v zellij &>/dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://sw.kovidgoyal.net/kitty/faq/
|
# 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
|
# 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
|
# https://github.com/sharkdp/vivid
|
||||||
if command -v vivid &>/dev/null; then
|
if command -v vivid &>/dev/null; then
|
||||||
export LS_COLORS="$(vivid generate catppuccin-mocha)"
|
export LS_COLORS="$(vivid generate catppuccin-mocha)"
|
||||||
fi
|
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
|
# https://github.com/dylanaraps/pfetch
|
||||||
if command -v pfetch &>/dev/null; then
|
if command -v pfetch &>/dev/null; then
|
||||||
pfetch
|
pfetch
|
||||||
|
|
Loading…
Reference in New Issue