dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit e15644b086c0440a26073532ef4638e16bdfa3fe
parent d4386bb5b5b6f5432f0117d0dc01ec750df316f9
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  1 Apr 2019 13:15:32 +0200

Strip base directory name from dialog

Diffstat:
Mbin/articlesearch | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/articlesearch b/bin/articlesearch @@ -2,8 +2,9 @@ set -e browser=${BROWSER:-firefox} +dir="$HOME/articles" -choice=$(find ~/articles/ -type f | dmenu_themed -i -l 10 -p "Search publications:") || exit 1 +choice="$dir/$(find "$dir" -type f | sed "s|$dir/||" | dmenu_themed -i -l 10 -p "Search publications:")" || exit 1 if [ -f "$choice" ]; then xdg-open "$choice"