We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d81a398 commit 535846cCopy full SHA for 535846c
Resources/completion.bash
@@ -13,9 +13,11 @@ _sf_{{ COMMAND_NAME }}() {
13
# for an alias, get the real script behind it
14
if [[ $(type -t $sf_cmd) == "alias" ]]; then
15
sf_cmd=$(alias $sf_cmd | sed -E "s/alias $sf_cmd='(.*)'/\1/")
16
+ else
17
+ sf_cmd=$(type -p $sf_cmd)
18
fi
19
- if [ ! -f "$sf_cmd" ]; then
20
+ if [ ! -x "$sf_cmd" ]; then
21
return 1
22
23
0 commit comments