diff options
| author | Deposite Pirate | 2025-10-04 16:20:42 +0200 |
|---|---|---|
| committer | Deposite Pirate | 2025-10-04 16:20:42 +0200 |
| commit | 4d1f630a99b9d9a3c6eeb75a5225469aa38404ca (patch) | |
| tree | 0f3b818eb20e50a224ec2c3458810dcbd7280458 | |
| parent | cff2225466f1db00609f9268ac515c26ca3151d3 (diff) | |
Add clipboard aliases according to platform.
new file: 05clipboard.fish
| -rw-r--r-- | conf.d/05clipboard.fish | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/conf.d/05clipboard.fish b/conf.d/05clipboard.fish new file mode 100644 index 0000000..de14a01 --- /dev/null +++ b/conf.d/05clipboard.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 |
