darkrc/shell/tweaks

28 lines
452 B
Text
Raw Normal View History

#!/bin/sh
stty -ixon
if which nvim > /dev/null
then
alias vim=nvim
alias oldvim=$(which vim)
fi
vimswitch() {
if [ -z "$EXPANDTAB" ]
then
export EXPANDTAB=yes
export TABSTOP=2
echo -e "Vim switched to \033[01;32mSpaces\033[00m mode"
else
unset EXPANDTAB
unset TABSTOP
echo -e "Vim switched to \033[01;35mTabs\033[00m mode"
fi
}
2021-12-28 10:52:01 +00:00
for function in $(find $(dirname $(dirname $0))/fun/ -type f -name "*.sh")
do
source $function
done