-
Notifications
You must be signed in to change notification settings - Fork 0
/
xyank.help
45 lines (30 loc) · 1018 Bytes
/
xyank.help
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function print_synopsis {
echo -e "\n\n\n${CX8} SYNOPSIS"
echo -e "${C5} [CMD... |] ${CX6}xyank ${CX4}X|Y ${C5}[STR...]\n\n"
}
function print_usage {
cat << EOM
NAME
xyank - format, build, execute, pass standard input and arguments to clipboard
SYNOPSIS
[CMD... |] xyank X|Y [STR...]
EXAMPLES
# yank arguments to clipboard
xyank Y date foo # date foo
# yank stdin to clipboard
date | xyank y # Sun Feb 25 00:00:00 AM +00 2024
# yank stdin + arguments
date | xyank Y foo bar # Sun Feb 25 00:00:00 AM +00 2024 foo bar
# execute argument * yank its stdout to clipboard
xyank X date # Sun Feb 25 00:00:00 AM +00 2024
# execute stdin & yank its stdout to clipboard
echo date | xyank X # Sun Feb 25 00:00:00 AM +00 2024
# execute stdin + arguments & yank its stdout to clipboard
echo date | xyank X '+%s' # 1708796381
SEE ALSO
yank(1), xsel(1), xset(1), xclipboard(1), xpaste(1)
AUTHOR
metaory <[email protected]>, Feb 2024
EOM
}
# vim: ft=bash