mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Include sh commands in default listing
This commit is contained in:
parent
75f65a980b
commit
c928ba7a21
1 changed files with 9 additions and 3 deletions
|
@ -6,6 +6,11 @@ if [ "$1" = "--sh" ]; then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "--no-sh" ]; then
|
||||||
|
nosh=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
{ for path in ${PATH//:/$'\n'}; do
|
{ for path in ${PATH//:/$'\n'}; do
|
||||||
|
@ -15,12 +20,13 @@ shopt -s nullglob
|
||||||
if [ ${command:0:3} = "sh-" ]; then
|
if [ ${command:0:3} = "sh-" ]; then
|
||||||
echo ${command##sh-}
|
echo ${command##sh-}
|
||||||
fi
|
fi
|
||||||
else
|
elif [ -n "$nosh" ]; then
|
||||||
if [ ${command:0:3} != "sh-" ]; then
|
if [ ${command:0:3} != "sh-" ]; then
|
||||||
echo $command
|
echo ${command##sh-}
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo ${command##sh-}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
} | sort | uniq
|
} | sort | uniq
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue