Skip to content

Commit 3b9e211

Browse files
committed
fix linting issues
1 parent 9f89333 commit 3b9e211

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"afplay",
1414
"convox",
1515
"greadlink",
16+
"gsed",
1617
"mplayer",
1718
"ndbroadbent",
1819
"osascript",

bashrc/functions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ restart_loop() (
33
trap true INT;
44
while
55
echo "Starting $1..."
6-
eval "${@:2}"
6+
"${@:2}"
77
sleep 0.5
88
do
99
continue
@@ -194,8 +194,8 @@ rspec_show_affected_files() {
194194

195195
for file in $(git show --pretty="format:" --name-only "$@" | \grep -v '^$'); do
196196
if [[ "$file" == spec/* ]]; then
197-
let f++;
198-
export "$git_env_char"$f="$file";
197+
(( f++ ))
198+
export "$GIT_ENV_CHAR"$f="$file";
199199
echo -e "# \033[2;37m[\033[0m$f\033[2;37m]\033[0m $file";
200200
spec_files+=("$file");
201201
fi

bashrc/git_completions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ __define_git_completion() {
2121
local cur words cword prev
2222
_get_comp_words_by_ref -n =: cur words cword prev
2323
COMP_LINE=\"git ${cmd} \${COMP_LINE/${alias_name} }\"
24-
let COMP_POINT+=$((4+${#cmd}-${#alias_name}))
24+
(( COMP_POINT+=$((4+${#cmd}-${#alias_name})) ))
2525
COMP_WORDS=(git ${cmd} \"\${COMP_WORDS[@]:1}\")
26-
let COMP_CWORD+=1
26+
(( COMP_CWORD+=1 ))
2727
__git_wrap__git_main
2828
}
2929
"

0 commit comments

Comments
 (0)