]> Sergey Matveev's repositories - dotfiles.git/commitdiff
URL editing history actually is useful
authorSergey Matveev <stargrave@stargrave.org>
Thu, 24 Feb 2022 16:15:44 +0000 (19:15 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 24 Feb 2022 16:15:44 +0000 (19:15 +0300)
urlview/bin/urlview

index 59aa515955998e79782aef94aad5bdcf0144bd32..9259818644e549b79c7650328061c51422a7119d 100755 (executable)
@@ -3,4 +3,4 @@ cmd=www
 # regexp is taken from urlview
 grep -P -o '(((http|https|ftp|gopher)|mailto):(//)?[^ <>\"\t]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)[^ .,;\t\n\r<\">\\):]?[^, <>\"\t]*[^ .,;\t\n\r<\">\\):]' "$@" |
 fzf --bind="enter:execute($cmd {})" \
-    --bind="ctrl-f:execute(rlwrap --history-filename /dev/null --pre-given={} head -1 | xargs $cmd)"
+    --bind="ctrl-f:execute(rlwrap --pre-given={} head -1 | xargs $cmd)"