aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-29 17:35:27 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-29 17:35:27 +0100
commitf45d92e6678f9468bce50af6176bdd746a1c4085 (patch)
treea3572ac80a8e46691acf8717a8a96cb2170a1482 /config.h
parentcpyout ported for FreeBSD (diff)
downloadst-f45d92e6678f9468bce50af6176bdd746a1c4085.tar.gz
st-f45d92e6678f9468bce50af6176bdd746a1c4085.tar.bz2
st-f45d92e6678f9468bce50af6176bdd746a1c4085.tar.xz
st-f45d92e6678f9468bce50af6176bdd746a1c4085.tar.zst
st-f45d92e6678f9468bce50af6176bdd746a1c4085.zip
Fix
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index bdeb228..9aca358 100644
--- a/config.h
+++ b/config.h
@@ -204,7 +204,7 @@ static MouseShortcut mshortcuts[] = {
#define TERMMOD (ControlMask|ShiftMask)
static char *cpyurlcmd[] = { "/bin/sh", "-c",
- "tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$#=_-~]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' ); IFS=; [ ! -z $tmp ] && echo $tmp | dmenu -i -l 10 | tr -d '\n' | xclip -selection clipboard",
+ "tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https|gopher|gemini|ftp|ftps|git|ssh)://|www\\.)[a-zA-Z0-9._-]*[:]?[a-zA-Z0-9./@$&%?$#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' ); IFS=; [ ! -z $tmp ] && echo $tmp | dmenu -i -l 10 | tr -d '\n' | xclip -selection clipboard",
"externalpipe", NULL };
static char *cpyoutcmd[] = { "/bin/sh", "-c", "/usr/local/bin/st-cpyout", "externalpipe", NULL };
static char *cpyoutnopcmd[] = { "/bin/sh", "-c", "/usr/local/bin/st-cpyout noprompt", "externalpipe", NULL };