Add os-specific fzf setup
parent
3ba86b0303
commit
28a6f41585
17
.bashrc
17
.bashrc
|
@ -1,6 +1,8 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
source /etc/os-release
|
||||||
|
|
||||||
# Load aliases dynamically
|
# Load aliases dynamically
|
||||||
[ -f "$HOME/.bash_aliases" ] && source "$HOME/.bash_aliases"
|
[ -f "$HOME/.bash_aliases" ] && source "$HOME/.bash_aliases"
|
||||||
|
|
||||||
|
@ -40,11 +42,16 @@ export FZF_DEFAULT_OPTS="
|
||||||
--color=fg:-1,bg:-1"
|
--color=fg:-1,bg:-1"
|
||||||
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
|
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
|
||||||
export FZF_CTRL_T_OPTS="--preview='bat {} | head -500'"
|
export FZF_CTRL_T_OPTS="--preview='bat {} | head -500'"
|
||||||
source /usr/share/fzf/completion.bash
|
|
||||||
source /usr/share/fzf/key-bindings.bash
|
if [[ $ID == "raspbian" ]]; then
|
||||||
_fzf_setup_completion path vim
|
source /usr/share/doc/fzf/examples/completion.bash
|
||||||
_fzf_setup_completion path zathura
|
source /usr/share/doc/fzf/examples/key-bindings.bash
|
||||||
_fzf_setup_completion path xournalpp
|
elif [[ $ID == "arch" ]]; then
|
||||||
|
source /usr/share/fzf/completion.bash
|
||||||
|
source /usr/share/fzf/key-bindings.bash
|
||||||
|
fi
|
||||||
|
|
||||||
|
_fzf_setup_completion path vimn zathura xournalpp
|
||||||
|
|
||||||
# Nvm
|
# Nvm
|
||||||
export PATH=~/.nvm/versions/node/v14.16.0/bin:$PATH
|
export PATH=~/.nvm/versions/node/v14.16.0/bin:$PATH
|
||||||
|
|
Loading…
Reference in New Issue