From 2b8b624479b32709ce0d4c37218d50dc31bac4df Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 7 Mar 2023 10:36:59 +0100 Subject: allow multiline prompts for ask --- bin/common/ask | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/common/ask b/bin/common/ask index e9f6c91..0f49a99 100755 --- a/bin/common/ask +++ b/bin/common/ask @@ -12,6 +12,7 @@ else prompt="$@" fi +prompt="$(echo "$prompt" | tr "\n\t" ' ')" API_KEY="$(pass tokens/openai-api)" -- cgit v1.2.3 From dc1528525078ce138974beb3c354abf7774f7f00 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 7 Mar 2023 10:37:20 +0100 Subject: updated dmpdf to directories --- bin/guiscripts/dmpdf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/guiscripts/dmpdf b/bin/guiscripts/dmpdf index cf1f0dd..21f3ed0 100755 --- a/bin/guiscripts/dmpdf +++ b/bin/guiscripts/dmpdf @@ -1,6 +1,6 @@ #!/bin/bash -find ${1:-~/docs ~/Downloads} 2> /dev/null | grep -E ".+\.pdf" | sort > /tmp/dmpdf +find ${1:-$HOME/docs $HOME/dl} 2> /dev/null | grep -E ".+\.pdf" | sort > /tmp/dmpdf choice="$(\ sed 's|^/home/aluc|\~| ; s|\([^/]\)[^/]*/|\1/|g' /tmp/dmpdf \ | awk '{printf "%s %s\n", NR ":", $0}' \ @@ -11,4 +11,4 @@ if [ -z "$choice" ]; then exit fi file="$(sed -n "${choice::-1}p" /tmp/dmpdf)" -evince "$file" & +zathura "$file" & -- cgit v1.2.3