aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-15 08:17:44 -0300
committerEuAndreh <eu@euandre.org>2021-01-15 08:17:44 -0300
commit65d54c64f1f52619e6e1c188c522e5bf0235f9ee (patch)
tree0cc454f4a05f15957f60f39eba4b3e9433375690 /bash
parentscripts/ad-hoc/yt: ShellCheck (diff)
downloaddotfiles-65d54c64f1f52619e6e1c188c522e5bf0235f9ee.tar.gz
dotfiles-65d54c64f1f52619e6e1c188c522e5bf0235f9ee.tar.xz
fzf.sh: ShellCheck
Diffstat (limited to 'bash')
-rw-r--r--bash/fzf.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/fzf.sh b/bash/fzf.sh
index 24403394..1cfc0400 100644
--- a/bash/fzf.sh
+++ b/bash/fzf.sh
@@ -38,6 +38,7 @@ fzg() {
if [ -n "$fn" ]; then
f="$(echo "$fn" | cut -d: -f1)"
n="$(echo "$fn" | cut -d: -f2)"
+ # shellcheck disable=2068
history -s fzgrep $@
history -s vi "+$n" "$f"
vi "+$n" "$f"
@@ -47,6 +48,7 @@ fzg() {
f() {
file="$(git ls-files | fzf-tmux --select-1 --exit-0 --query "$2" --preview 'cat {}')"
if [ -n "$file" ]; then
+ # shellcheck disable=2068
history -s f $@
history -s "$1" "$file"
"$1" "$file"