From 70f11860d22e59310d73d285ab328d319327cf9c Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Mon, 20 Mar 2023 15:57:31 -0700 Subject: [PATCH] Add previous directory alias The slightly wonky syntax is needed to instruct the shell that the passed `-` is not a command flag, but a literal string. --- src/.bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/.bashrc b/src/.bashrc index 2ab0dc1..2d39890 100755 --- a/src/.bashrc +++ b/src/.bashrc @@ -101,6 +101,7 @@ alias nohup='nohup >/dev/null &>/dev/null' # simple shortcuts alias aliases='alias -p' +alias -- -='cd -' alias h='history' alias j='jobs -l' alias which='type -a'