blob: 9fc06293502ac474f6d348595910d0ae5253f0f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if not fish_is_root_user
if set -q WAYLAND_DISPLAY
alias_if wl-copy ccpy
alias_if wl-paste cpst
alias_if notify-send notify
else if set -q DISPLAY
alias_if xclip ccpy -i -selection clipboard
alias_if xclip cpst -o -selection clipboard
alias_if notify-send notify
else if string match -q 'Darwin' (uname)
alias_if pbcopy ccpy
alias_if pbpaste cpst
alias_if osascript notify -e
end
end
|