diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:06:43 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:06:43 +1300 |
commit | 51330a7d31bc0e3b90bc9ff04d1cc923a372ed66 (patch) | |
tree | be19e48607e05a3f537f6470bfc1af849266c387 | |
parent | Overhaul text filename generation (diff) | |
download | dotfiles-51330a7d31bc0e3b90bc9ff04d1cc923a372ed66.tar.gz dotfiles-51330a7d31bc0e3b90bc9ff04d1cc923a372ed66.zip |
Simplify an array operation in `bd` completion
-rw-r--r-- | bash/bash_completion.d/bd.bash | 2 |
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 |