From 70eeab33fbc6a91c0e73ffee3eb7d2899532a8e9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sat, 4 Oct 2025 21:10:53 +0200 Subject: Use a more generic name for the file. renamed: conf.d/05clipboard.fish -> conf.d/05gui.fish --- conf.d/05clipboard.fish | 14 -------------- conf.d/05gui.fish | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 conf.d/05clipboard.fish create mode 100644 conf.d/05gui.fish diff --git a/conf.d/05clipboard.fish b/conf.d/05clipboard.fish deleted file mode 100644 index de14a01..0000000 --- a/conf.d/05clipboard.fish +++ /dev/null @@ -1,14 +0,0 @@ -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 diff --git a/conf.d/05gui.fish b/conf.d/05gui.fish new file mode 100644 index 0000000..de14a01 --- /dev/null +++ b/conf.d/05gui.fish @@ -0,0 +1,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 -- cgit v1.3.1