repo.or.cz
/
vis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Convert call sites of text_line_char_{get,set} to text_line_width_{get,set}
[vis.git]
/
vis-copy
blob
d820d79b62f05cf19359916206e4486b272cc009
1
#!/bin/sh
2
3
if
[ !
-z
"
$DISPLAY
"
];
then
4
exec
xsel
-ib
5
elif
type
pbcopy
>/
dev
/
null
2
>&
1
;
then
6
exec
pbcopy
7
else
8
echo
"System clipboard not supported"
1
>&
2
9
exit
1
10
fi