bashrc: add rehash()

This commit is contained in:
2023-12-10 19:23:40 +01:00
parent f8a98f3c9a
commit 5b01e92806

View File

@@ -178,7 +178,15 @@ export USERTMP=~/tmp
alias fuck='sudo $(history -p \!\!)'
# I am used to rehash...
alias rehash="hash -r"
# rehash - manage bash's remembered commands paths
# $1...: Only forget those commands
rehash() {
if (($#)); then
hash -d "$@"
else
hash -r
fi
}
# french-> english and english->french translation
alias trans="trans.sh"