summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-06-28 14:57:29 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-06-28 14:57:29 +0200
commit8c50eedf0c48c1d091bf73496db281103ea4dae6 (patch)
tree8f67f27e4f4172b6a2679e7f307b743130a41502 /nix-script
parent33bf2844ba09cbcabc53abdae357c09e6e7bec0b (diff)
Fix: Remove path from command list
Closes #24.
Diffstat (limited to 'nix-script')
-rwxr-xr-xnix-script3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix-script b/nix-script
index cb8f3de..3cfc082 100755
--- a/nix-script
+++ b/nix-script
@@ -92,7 +92,8 @@ then
stdout "Listing commands"
for cmd in $(all_commands)
do
- echo $(scriptname_to_command $cmd)
+ echo $(scriptname_to_command $cmd | \
+ sed -r "s,$(dirname ${BASH_SOURCE[0]})/nix-script-,,")
done
exit 0
fi