aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:06:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:06:43 +1300
commit51330a7d31bc0e3b90bc9ff04d1cc923a372ed66 (patch)
treebe19e48607e05a3f537f6470bfc1af849266c387
parentOverhaul text filename generation (diff)
downloaddotfiles-51330a7d31bc0e3b90bc9ff04d1cc923a372ed66.tar.gz
dotfiles-51330a7d31bc0e3b90bc9ff04d1cc923a372ed66.zip
Simplify an array operation in `bd` completion
-rw-r--r--bash/bash_completion.d/bd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/bd.bash b/bash/bash_completion.d/bd.bash
index 86146a4e..1c1a40a8 100644
--- a/bash/bash_completion.d/bd.bash
+++ b/bash/bash_completion.d/bd.bash
@@ -10,7 +10,7 @@ _bd() {
# Remove the last element in the array (the current directory)
((${#dirnames[@]})) || return 1
- dirnames=("${dirnames[@]:0:$((${#dirnames[@]}-1))}")
+ dirnames=("${dirnames[@]:0:${#dirnames[@]}-1}")
# Add the matching dirnames to the reply
local dirname