summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
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