aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-05 23:51:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-05 23:51:05 +1200
commit05cdb67b7dcc17da611a5e038b08105873d2d62b (patch)
treec4c58cc67fd385e878f6e58a058ee7421d985898 /bash/bashrc.d/cd.bash
parentInline while loop in cd function with do (diff)
downloaddotfiles-05cdb67b7dcc17da611a5e038b08105873d2d62b.tar.gz
dotfiles-05cdb67b7dcc17da611a5e038b08105873d2d62b.zip
Sort options alphabetically
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r--bash/bashrc.d/cd.bash2
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))