1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 10:28:00 +00:00

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

View File

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