aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/bd.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/bd.bash')
-rw-r--r--bash/bashrc.d/bd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/bd.bash b/bash/bashrc.d/bd.bash
index e856fc40..2bc70f18 100644
--- a/bash/bashrc.d/bd.bash
+++ b/bash/bashrc.d/bd.bash
@@ -3,7 +3,7 @@ bd() {
# If there are no arguments, we just move up one directory (cd ..)
if [[ $1 ]] ; then
- dir="${PWD%/${1:?}*}"/"$1"
+ dir="${PWD%/$1*}"/"$1"
else
dir=..
fi