From 3f4e930385675a4613db5f12b19557b126c29559 Mon Sep 17 00:00:00 2001 From: ensa Date: Sat, 15 Aug 2020 23:07:00 -0700 Subject: update, fixes bin/fl: removed unnecessary newline escapes config/ X11/ xprofile: added dvorak programmer replaced unclutter with xbanish xresources: switch to hermit for font aliasrc: lynx vikeys color/colors.sh: fixed & portablized color grabbing cwmrc: removed dunst/dunstrc: switch to hermit for font ksh/ functions/ man_complete: now uses ~cache mpvpin: args improved kshrc: added FCEDIT removed uptime from PF_INFO prompt.ksh: shored up lf/lfrc: prompt made more consistent with ksh's ncmpcpp/config: paths updated newsboat/config: path updated shrc: LAUNCHER added LOCK switched to xlockmore --- bin/fl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/fl') diff --git a/bin/fl b/bin/fl index 8c058d7..bd98a63 100755 --- a/bin/fl +++ b/bin/fl @@ -14,8 +14,8 @@ re_urls='((https?://|www\.)[[:alnum:].]*:?[[:alnum:]./@$&%?$#=_-]*)' # finds links, puts them in a list # sort -u prevents duplicates, but also sorts the links urlparse() { - lstrip "$(cat)" "*\│" |\ - grep -Eo "$re_urls" |\ + lstrip "$(cat)" "*\│" | + grep -Eo "$re_urls" | sort -u | sed 's|^www.|http://www\.|g' } if [ -n "$1" ]; then @@ -28,5 +28,5 @@ fi IFS= # send any found links to dmenu so one can be chosen to be sent to the clipboard -[ -n "$urls" ] &&\ +[ -n "$urls" ] && echo $urls | dmenu -i -p 'copy which url?' -l 10 | xclip -r -sel c \ No newline at end of file -- cgit 1.4.1-2-gfad0