diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 22:24:03 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 22:24:03 +1300 |
commit | b1c7a194e1c4a44da11ca901fb814c3d8b365719 (patch) | |
tree | 229b97b55b45fd2e43bddfb80036450bca4dda1c /bash | |
parent | Use simple loop rather than glob tricks in keep (diff) | |
download | dotfiles-b1c7a194e1c4a44da11ca901fb814c3d8b365719.tar.gz dotfiles-b1c7a194e1c4a44da11ca901fb814c3d8b365719.zip |
Use variable for node count, not expansion
Cheaper (I think).
Diffstat (limited to 'bash')
-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 09134e6a..4dde0eac 100644 --- a/bash/bash_completion.d/bd.bash +++ b/bash/bash_completion.d/bd.bash @@ -22,7 +22,7 @@ _bd() { done # Continue if we have at least two nodes, counting the leaf - ((${#nodes[@]} > 1)) || return + ((ni > 1)) || return # Shift off the leaf, since it is not meaningful to go "back to" the # current directory |