fix bashrc.d directory rename

This commit is contained in:
Diego Fernando Carrión 2024-08-09 16:13:31 +02:00
parent 7edd3b40e2
commit a8b56f8b9d
2 changed files with 13 additions and 3 deletions

View File

@ -99,7 +99,7 @@ then
} }
fi fi
if [ -d /etc/bash.bashrc.d ]; then if [ -d /etc/bashrc.d ]; then
for i in /etc/bashrc.d/*.sh; do for i in /etc/bashrc.d/*.sh; do
if [ -r $i ]; then if [ -r $i ]; then
. $i . $i

View File

@ -18,12 +18,22 @@ fi
# Editors # Editors
alias ed="ed -p': '" alias ed="ed -p': '"
if [ -x "$(command -v nvim)" ] if [ -x "$(command -v nvim)" ] && ! limited_terminal
then then
vim_path="$(command -v vim)"
vimdiff_path="$(command -v vimdiff)"
if [ -x "$vim_path" ]
then
alias vvim="$vim_path"
fi
if [ -x "$vimdiff_path" ]
then
alias vvimdiff="$vimdiff_path"
fi
alias vim=nvim alias vim=nvim
alias vimdiff="nvim -d" alias vimdiff="nvim -d"
fi fi
if [ "$(whence -b vi)" -eq /usr/local/bin/ex ] if [[ "$(whence -b vi)" == "/usr/local/bin/ex" ]]
then then
alias vi='EXINIT="$(inline_exrc $HOME/.exrc)" vi' alias vi='EXINIT="$(inline_exrc $HOME/.exrc)" vi'
fi fi