commit 620e217cc96f7534fdd93ad99a2af72f18ea7177
parent 0823760b84b9ca941765536a52175b4c9c880472
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sat, 30 Jan 2021 12:46:39 -0800
Make the goto shell function more useful
Append the second argument to the expanded path allowing a much
quicker and more elegant method of traversing preset directories,
almost like ksh directory aliases without tab completion.
I think I'm going to move this change to the script itself at some
point.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/shell/.config/shell/cd b/modules/shell/.config/shell/cd
@@ -21,4 +21,4 @@ cdr() {
cd ${d:?No match}
}
-goto() { cd "`ets $*`" ;}
+goto() { cd "`ets $1`/$2" ;}