Add `-` alias for `cd -`

Taken with love from `oh-my-zsh`
This commit is contained in:
Michael Hoang 2022-02-05 11:22:29 +11:00 committed by Kaleb Elwert
parent 357ce2ebbf
commit 97f36e9402
1 changed files with 1 additions and 0 deletions

View File

@ -25,5 +25,6 @@ unsetopt CLOBBER # Do not overwrite existing files with > and >>.
# Aliases
#
alias -- -='cd -'
alias d='dirs -v'
for index ({1..9}) alias "$index"="cd +${index}"; unset index