commit e4c6e91ae24c555efc881b755b593afd3713fee3
parent e69bd035e4f052c93956c2e216261a055506aa80
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sat, 14 Apr 2018 21:02:38 +0200
Added unalias function to replace alias with actual file/directory
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.commonprofile b/.commonprofile
@@ -137,7 +137,14 @@ realpath() {
echo 'idk what you want dude'
fi
}
-
+unalias() {
+ for i in $@; do
+ p=`realpath -w $i`
+ rm $i
+ mv $p .
+ unset p
+ done
+}
######################
### PATH CHANGES ###