diff options
author | Yigit Sever | 2024-08-08 10:37:28 +0200 |
---|---|---|
committer | Yigit Sever | 2024-08-08 10:37:28 +0200 |
commit | bf8082002534ef948abda0bd12a30d3e6973f32b (patch) | |
tree | 30979d92981bc2d62763967f9cc9453ec1ebaa1b /.config/fish/config.fish | |
parent | 2cd5db254b7bf500828c84cd1d00dbf77fed5a0d (diff) | |
download | dotfiles-bf8082002534ef948abda0bd12a30d3e6973f32b.tar.gz dotfiles-bf8082002534ef948abda0bd12a30d3e6973f32b.tar.bz2 dotfiles-bf8082002534ef948abda0bd12a30d3e6973f32b.zip |
fish: wayland/x11 aware wl-copy/xsel
Diffstat (limited to '.config/fish/config.fish')
-rw-r--r-- | .config/fish/config.fish | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish index adcbe4a..e5e5ba8 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish | |||
@@ -31,7 +31,6 @@ if status is-interactive | |||
31 | abbr --add --global bc 'bc -l' | 31 | abbr --add --global bc 'bc -l' |
32 | abbr --add --global bo 'bukuopener' | 32 | abbr --add --global bo 'bukuopener' |
33 | abbr --add --global cp 'cp -i' | 33 | abbr --add --global cp 'cp -i' |
34 | abbr --add --global C 'xsel -b' # Copy to clipboard | ||
35 | abbr --add --global df 'df -h' | 34 | abbr --add --global df 'df -h' |
36 | abbr --add --global free 'free -m' | 35 | abbr --add --global free 'free -m' |
37 | abbr --add --global gst 'git status' | 36 | abbr --add --global gst 'git status' |
@@ -60,6 +59,13 @@ if status is-interactive | |||
60 | abbr --add --global wim 'nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki' | 59 | abbr --add --global wim 'nvim /home/yigit/nextcloud/personal_wiki/text/index.wiki' |
61 | abbr --add --global yst 'yadm status' | 60 | abbr --add --global yst 'yadm status' |
62 | abbr --add --global dr 'dragon-drop' | 61 | abbr --add --global dr 'dragon-drop' |
62 | abbr --add --global ddg 'surfraw duckduckgo -j' | ||
63 | |||
64 | if test (sessiontype) = "wayland" | ||
65 | abbr --add --global C 'wl-copy' # Wayland | ||
66 | else | ||
67 | abbr --add --global C 'xsel -b' # X11 | ||
68 | end | ||
63 | 69 | ||
64 | zoxide init fish | source | 70 | zoxide init fish | source |
65 | direnv hook fish | source | 71 | direnv hook fish | source |