feat: Meilleure gestion des applications par défaut

This commit is contained in:
Xavier Logerais 2024-06-21 13:21:56 +00:00
parent 8fcea3473a
commit 0b8bba8c9b

View File

@ -1,8 +1,24 @@
#!/bin/bash #!/bin/bash
# Defined prefered applications # Defined prefered applications
export TERMINAL=kitty
export PAGER=less
export EDITOR=nvim
export BROWSER=firefox
# EDITOR
if (command -v nvim &>/dev/null); then
export EDITOR=nvim
fi
# PAGER
export PAGER=less
# 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
export TERMINAL=kitty
# BROWSER
export BROWSER=firefox