1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-15 08:01:43 +00:00

Simplify a few for loops

This commit is contained in:
Sorin Ionescu
2012-04-08 18:37:22 -04:00
parent a7db355e26
commit dc7c51434a
3 changed files with 9 additions and 18 deletions

View File

@ -19,8 +19,5 @@ unsetopt CLOBBER # Don't overwrite existing files with > and >>.
# Use >! and >>! to bypass.
# Aliases
for index in {1..9}; do
alias "$index"="cd +${index}"
done
unset index
for index ({1..9}) alias "$index"="cd +${index}"; unset index