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 ef50bf2 commit a18db46Copy full SHA for a18db46
bin/bk
@@ -7,9 +7,11 @@ if [ -z "$1" ] || [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
7
echo " $0 <command> [args]" >&2
8
echo >&2
9
echo available commands: >&2
10
- for x in $(ls "$d"/cmd); do
11
- echo " $x" >&2
12
- done
+ for x in $(ls "$d"); do
+ if [[ "$x" =~ ^bk- ]]; then
+ # Strip the prefix and print the remaining filename with tab padding
13
+ echo " ${x:3}" >&2
14
+ fi
15
16
echo • some commands provide \`--help\` >&2
17
echo • "you can (unambiguously) shorten commands, eg. \`bk b\`"
0 commit comments