bashrc.cust: Add 'getalias' function

This commit is contained in:
2021-08-11 14:52:05 +02:00
parent eb60b3bec6
commit 9c52079165

View File

@@ -33,4 +33,8 @@ alias wget='wget --hsts-file /dev/null'
function cust-error { function cust-error {
echo "ERROR: Invalid argument(s)!" echo "ERROR: Invalid argument(s)!"
exit 1 exit 1
}
function getalias {
alias "$1" |cut -d "=" -f 2- |sed "s/.//; s/.$//"
} }