Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 5d5ae0b + 535846c commit 09b8e50Copy full SHA for 09b8e50
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