blob: de14a010ee6235f74446affa84eb71a93ca5ea72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if status is-interactive; and not fish_is_root_user
if set -q DISPLAY; and command -q xclip
alias ccpy 'xclip -i -selection clipboard'
alias cpst 'xclip -o -selection clipboard'
else if set -q WAYLAND_DISPLAY; and command -q wl-copy; and command -q wl-paste
alias ccpy 'wl-copy'
alias cpst 'wl-paste'
else if test (uname) = 'Darwin'; and command -q pbcopy; and command -q pbpaste
alias ccpy 'pbcopy'
alias cpst 'pbpaste'
end
end
|