summaryrefslogtreecommitdiff
path: root/auxless
diff options
context:
space:
mode:
Diffstat (limited to 'auxless')
-rwxr-xr-xauxless6
1 files changed, 3 insertions, 3 deletions
diff --git a/auxless b/auxless
index 5d2e698..50f4919 100755
--- a/auxless
+++ b/auxless
@@ -1,5 +1,5 @@
#!/bin/sh
-smod () {
- cd $HOME/repos/$1 && vim config.def.h && sudo cp config.def.h config.h && sudo make clean install && cd -
-}
+[ "$#" -ne 1 ] && { echo "Usage: auxless <suckless-program>" >&2 ; exit 1; }
+
+cd "$HOME"/repos/"$1" && vim config.def.h && sudo cp config.def.h config.h && sudo make clean install && cd - || exit