From 777498e2ed6db0426b1366fe218bea905c881439 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Oct 2015 17:26:07 +0100 Subject: Add shortcut to run any script from bin --- bin/run | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/run (limited to 'bin/run') 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" -- cgit v1.2.3