Skip to content

Commit

Permalink
Merge branch '5.4' into 6.0
Browse files Browse the repository at this point in the history
* 5.4:
  [Console] get full command path for command in search path
  • Loading branch information
fabpot committed Jul 22, 2022
2 parents 5d5ae0b + 535846c commit 09b8e50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Resources/completion.bash
Expand Up @@ -13,9 +13,11 @@ _sf_{{ COMMAND_NAME }}() {
# for an alias, get the real script behind it
if [[ $(type -t $sf_cmd) == "alias" ]]; then
sf_cmd=$(alias $sf_cmd | sed -E "s/alias $sf_cmd='(.*)'/\1/")
else
sf_cmd=$(type -p $sf_cmd)
fi

if [ ! -f "$sf_cmd" ]; then
if [ ! -x "$sf_cmd" ]; then
return 1
fi

Expand Down

0 comments on commit 09b8e50

Please sign in to comment.