bashrc.cust: Add 'getalias' function
This commit is contained in:
1 parent
6b7dd340c4
commit
b1dd14fa7b
1 file changed
+4
@@ -34,3 +34,7 @@ function cust-error {
|
||||
echo "ERROR: Invalid argument(s)!"
|
||||
exit 1
|
||||
}
|
||||
|
||||
function getalias {
|
||||
alias "$1" |cut -d "=" -f 2- |sed "s/.//; s/.$//"
|
||||
}
|
||||
Reference in new issue
Block a user