blob: 68599ce4744a077323b59e889227a8d1bd02c2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if status is-interactive; and not fish_is_root_user
if set -q WAYLAND_DISPLAY
alias_if wl-copy ccpy
alias_if wl-paste cpst
alias_if notify notify-send
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 test (uname) = 'Darwin'
alias_if pbcopy ccpy
alias_if pbpaste cpst
alias_if osascript notify -e
end
end
|