Difference between revisions of "Better Bash Configs"
From TheBeard Science Project Wiki
(Created page with " These are just some things I add to my bashrc for enhancing the features of Bash. <source lang="sh"> # For better tab completion on symlink directories # Normal behavior: W...") |
(No difference)
|
Revision as of 19:37, 12 January 2020
These are just some things I add to my bashrc for enhancing the features of Bash.
# For better tab completion on symlink directories
# Normal behavior: With folder symlink "Documents", Type "Doc", Tab once auto-completes
# to "Documents", Tab again it completes to "Documents/".
# New behavior: With folder symlink "Documents", Type "Doc", Tab once auto-completes
# to "Documents/". Nice.
if ! [ -d "~/.inputrc" ];then
if [ -r "/etc/inputrc" ];then
cp /etc/inputrc ~/.inputrc
elif [ -r "/etc/inputrc.default" ];then
cp /etc/inputrc.default ~/.inputrc
else
touch ~/.inputrc
fi
echo -e "\nset mark-symlinked-directories on" >>~/.inputrc
fi