fix bashrc.d directory rename
This commit is contained in:
parent
7edd3b40e2
commit
a8b56f8b9d
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user