summaryrefslogtreecommitdiff
path: root/Biz/Ide
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-21 21:12:41 -0500
committerBen Sima <ben@bsima.me>2021-12-21 21:12:41 -0500
commit9a10f244693f4d0c17f4e758e64dbdc014299c9f (patch)
treee293cfae8637e54774c4a430b32b12dfcb3a1e2b /Biz/Ide
parentcf3fa3bdfab272151a734fe1b8725226b72f8521 (diff)
Enable shellcheck lint and fix its warnings
Diffstat (limited to 'Biz/Ide')
-rwxr-xr-xBiz/Ide/ftags.sh4
-rwxr-xr-xBiz/Ide/hoog.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/Biz/Ide/ftags.sh b/Biz/Ide/ftags.sh
index 4b8396b..77646da 100755
--- a/Biz/Ide/ftags.sh
+++ b/Biz/Ide/ftags.sh
@@ -5,7 +5,7 @@
set -euo pipefail
tags=$BIZ_ROOT/tags
tag_search=$(
- awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' $tags \
+ awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' "$tags" \
| cut -c1-80 \
| fzf \
--nth=1,2 \
@@ -13,7 +13,7 @@
--preview "rg --ignore-case --pretty --context 2 --word-regexp {+2}"
)
${EDITOR:-vim} \
- $(cut -f3 <<< "$tag_search") \
+ "$(cut -f3 <<< "$tag_search")" \
-c "set nocst" \
-c "silent tag $(cut -f2 <<< "$tag_search")"
##
diff --git a/Biz/Ide/hoog.sh b/Biz/Ide/hoog.sh
index 5379e54..3945f90 100755
--- a/Biz/Ide/hoog.sh
+++ b/Biz/Ide/hoog.sh
@@ -4,7 +4,7 @@
#
set -euo pipefail
HOOG="hoogle search --count=200"
- export FZF_DEFAULT_COMMAND="$HOOG $@"
+ export FZF_DEFAULT_COMMAND="$HOOG $*"
fzf \
--preview-window=down \
--preview "hoogle search --link --info {+2}" \