diff options
-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)) |