summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
Diffstat (limited to 'help')
-rwxr-xr-xhelp2
1 files changed, 1 insertions, 1 deletions
diff --git a/help b/help
index 13dc75e..1b74237 100755
--- a/help
+++ b/help
@@ -3,8 +3,8 @@
echo -e "\e]0;$USER@$HOSTNAME\e\\"
-cd "$(dirname "$0")"
if [ $# -eq 0 ]; then
+ cd "$(dirname "$0")"
echo "Commands available:"
find -L . -maxdepth 1 -type f \! -name '.*' -execdir perl -e '$w=80;$buf=""; for (@ARGV) { s@^\./@@; if (length("$buf $_") > $w) { print("$buf\n"); $buf = ""; } $buf .= " $_"; } print("$buf\n");' {} +
echo