dotfiles

My configuration files.
Log | Files | Refs | README

commit e654bae37974a7bf1599f727c922b281b3987c68
parent 8038f07202209b75db5e7e660e6c98f219152a24
Author: Sven Möller <sven@svenmoeller.xyz>
Date:   Mon, 28 Feb 2022 23:09:47 +0100

Work on script

Diffstat:
Mbin/.local/bin/lh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/.local/bin/lh b/bin/.local/bin/lh @@ -4,8 +4,6 @@ gui=false menu="fzf -i" open () { - url="$(echo "$1" | sed 's/medium.com/scribe.rip/')" - case $url in *.png|*.jpg|*.jpeg) curl $url | setsid -f imv -;; *.mp3|*.ogg|*youtube.com/watch*|*invidious.snopyta.org/watch*) @@ -77,4 +75,6 @@ while [ $# -gt 1 ]; do done [ -z "$action" ] && action="open" -cat "$0" | "$action" "$1" +url="$(echo "$1" | sed 's/medium.com/scribe.rip/')" + +cat "$0" | "$action" "$url"