fix: minor tweaks to be shellcheck comply

pull/19/head
Kevin Zhuang 4 years ago
parent b92337702a
commit f9203b0824

@ -5,7 +5,7 @@ mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
__dotbare_completion()
{
local IFS=$'\n' subcommands curr prev options selected suggestions
local IFS=$'\n' subcommands curr prev options suggestions
curr="${COMP_WORDS[$COMP_CWORD]}"
prev="${COMP_WORDS[$COMP_CWORD-1]}"

@ -203,7 +203,7 @@ function get_stash() {
function grep_lines() {
local header="${1:-select lines to edit}"
set_fzf_multi "$2"
cd "${DOTBARE_TREE}"
cd "${DOTBARE_TREE}" || exit
git --git-dir="${DOTBARE_DIR}" --work-tree="${DOTBARE_TREE}" \
grep --line-number -- . \
| fzf --delimiter : --nth 3.. --header="${header}" \

Loading…
Cancel
Save