From 02308076e833029cb84467e1773aacbac8ae1f0a Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 12 Mar 2019 20:29:37 +0100 Subject: Simple changes to some scripts. --- selectPath.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 selectPath.sh (limited to 'selectPath.sh') diff --git a/selectPath.sh b/selectPath.sh new file mode 100755 index 0000000..5de2af8 --- /dev/null +++ b/selectPath.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Reads ~/.paths and uses dmenu to echo a path. + +[ -z "$1" ] && prompt="Choose a path:" || prompt="$1" +echo "$(cat $HOME/.paths | dmenu -l $(cat $HOME/.paths | wc -l) -p "$prompt" | awk '{print $3}')" + -- cgit v1.2.1