aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-25 03:29:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-25 03:29:39 +1200
commit7fd4fe398b238b346ecac02f10a4541b39f5e812 (patch)
tree621444995bb3efe82ce4530c8daf622de8e44b00 /bash/bashrc.d/cd.bash
parentRestructure tmux wrapper function slightly (diff)
downloaddotfiles-7fd4fe398b238b346ecac02f10a4541b39f5e812.tar.gz
dotfiles-7fd4fe398b238b346ecac02f10a4541b39f5e812.zip
Remove unneeded $ from arithmetic expansion
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r--bash/bashrc.d/cd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash
index fedb19f5..a356a4de 100644
--- a/bash/bashrc.d/cd.bash
+++ b/bash/bashrc.d/cd.bash
@@ -6,7 +6,7 @@ cd() {
while getopts elP opt; do
opts[${#opts[@]}]=-$opt
done
- shift $(($OPTIND-1))
+ shift $((OPTIND-1))
if (($# == 2)); then
if [[ $PWD == *$1* ]]; then
builtin cd "${opts[@]}" "${PWD/$1/$2}"