feat(bashrc): EDITOR update and PAGER
This commit is contained in:
parent
0a596c5ad3
commit
49e51f8004
1 changed files with 9 additions and 2 deletions
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
export PATH=$HOME/.local/share/bin/:$PATH
|
||||
|
||||
if which vim >/dev/null 2>&1; then
|
||||
export EDITOR=vim
|
||||
if which less; then
|
||||
export PAGER=less
|
||||
fi
|
||||
|
||||
for editor in "vim" "nvim" "vi" "nano" "ed"; do
|
||||
if which $editor >/dev/null 2>&1; then
|
||||
export EDITOR=$editor
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue