diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-05 23:51:05 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-05 23:51:05 +1200 |
commit | 05cdb67b7dcc17da611a5e038b08105873d2d62b (patch) | |
tree | c4c58cc67fd385e878f6e58a058ee7421d985898 /bash | |
parent | Inline while loop in cd function with do (diff) | |
download | dotfiles-05cdb67b7dcc17da611a5e038b08105873d2d62b.tar.gz dotfiles-05cdb67b7dcc17da611a5e038b08105873d2d62b.zip |
Sort options alphabetically
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/cd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index 3ee3329f..b03bdaac 100644 --- a/bash/bashrc.d/cd.bash +++ b/bash/bashrc.d/cd.bash @@ -2,7 +2,7 @@ # emulating a Zsh function that I often find useful; preserves options too __cd() { local opts= - while getopts lPe opt; do + while getopts elP opt; do opts="$opts -$opt" done shift $(($OPTIND-1)) |