mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 04:28:00 +00:00
Generate the directory stack aliases with a loop.
This commit is contained in:
parent
6de821b70d
commit
5a19079207
@ -10,13 +10,9 @@ setopt EXTENDED_GLOB # Use extended globbing syntax.
|
|||||||
unsetopt CLOBBER # Don't overwrite existing files with > and >>.
|
unsetopt CLOBBER # Don't overwrite existing files with > and >>.
|
||||||
# Use >! and >>! to bypass.
|
# Use >! and >>! to bypass.
|
||||||
|
|
||||||
alias 1='cd -'
|
# Aliases
|
||||||
alias 2='cd +2'
|
for index in {1..9}; do
|
||||||
alias 3='cd +3'
|
alias "$index"="cd +${index}"
|
||||||
alias 4='cd +4'
|
done
|
||||||
alias 5='cd +5'
|
unset index
|
||||||
alias 6='cd +6'
|
|
||||||
alias 7='cd +7'
|
|
||||||
alias 8='cd +8'
|
|
||||||
alias 9='cd +9'
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user