summaryrefslogtreecommitdiff
path: root/bin/run
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-10-09 17:26:07 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-10-09 17:26:07 +0100
commit777498e2ed6db0426b1366fe218bea905c881439 (patch)
tree122d7ea93e65a1be00421e86195096cdcb5713bd /bin/run
parentf2c1c49654862c14b214e91d9b40eabed255f3af (diff)
Add shortcut to run any script from bin
Diffstat (limited to 'bin/run')
-rwxr-xr-xbin/run5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/run b/bin/run
new file mode 100755
index 0000000..4b57856
--- /dev/null
+++ b/bin/run
@@ -0,0 +1,5 @@
+#!/bin/bash
+SCRIPTS_DIR="$HOME/dotfiles/bin" && cd $SCRIPTS_DIR
+SCRIPTS=$(ls -A $SCRIPTS_DIR)
+TARGET=$(echo "${SCRIPTS//"$SCRIPTS_DIR/"/}" | dmenu -i -p "Run script:")
+[[ -n $TARGET ]] && "$SCRIPTS_DIR/$TARGET"