These files are always sourced (never executed directly), so the #!/bin/bash shebang is inert and misleading. Drop it consistently across rc.d/*, profile.d/*, and aliases.d/*.
29 lines
507 B
Plaintext
29 lines
507 B
Plaintext
# Defined prefered applications
|
|
|
|
# EDITOR
|
|
if (command -v nvim &>/dev/null); then
|
|
export EDITOR=nvim
|
|
fi
|
|
|
|
# PAGER
|
|
if (command -v less &>/dev/null); then
|
|
export PAGER=less
|
|
fi
|
|
|
|
# MANPAGER
|
|
if (command -v nvim &>/dev/null); then
|
|
export MANPAGER='nvim +Man!'
|
|
elif (command -v bat &>/dev/null); then
|
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
|
fi
|
|
|
|
# TERMINAL
|
|
if (command -v kitty &>/dev/null); then
|
|
export TERMINAL=kitty
|
|
fi
|
|
|
|
# BROWSER
|
|
if (command -v firefox &>/dev/null); then
|
|
export BROWSER=firefox
|
|
fi
|