aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run_with_dmenu.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
commit6e528248414e330c9e25e81596ab47b8b8a5b701 (patch)
treee1aa41a7f3198eeac187e6177ec7d4a33db229d3 /bin/run_with_dmenu.sh
downloadscripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz
scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip
first commitmaster
Diffstat (limited to 'bin/run_with_dmenu.sh')
-rwxr-xr-xbin/run_with_dmenu.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/run_with_dmenu.sh b/bin/run_with_dmenu.sh
new file mode 100755
index 0000000..c7bf9dd
--- /dev/null
+++ b/bin/run_with_dmenu.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env zsh
+
+# set -o pipefail
+source ~/scripts/zshrc_stripped.sh
+COMMAND=$(echo "" | dmenu -h 20 -p "Quick Term:")
+RESULT=$(eval "$COMMAND")
+echo $RESULT | dmenu -h 20 -p "Quick Term Out:" > /dev/null