]> localhost Git - dotfiles.git/commitdiff
Add tmux copy+paste to bashrc
authorMisomosi <[email protected]>
Sat, 5 Oct 2024 05:41:54 +0000 (01:41 -0400)
committerMisomosi <[email protected]>
Sat, 5 Oct 2024 05:41:54 +0000 (01:41 -0400)
.bashrc
README.md

diff --git a/.bashrc b/.bashrc
index 4e8bba66554630c4db9ea6ea2c71e2c99ccc6641..43a7f14e317d29cdbd085e6bff81b74979fc856a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -14,3 +14,8 @@ export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
 # This is equivalent to 'auto-load' but with '.breakpoints'
 # Remove this as well if you don't like 'auto-load'
 alias gdb="gdb-posix -ex 'source .breakpoints'"
+
+# Debian comes with Wayland so this is what I use
+# If you use X, then xclip is what you're looking for
+alias tmux-copy="tmux show-buffer | wl-copy"
+alias tmux-paste="wl-paste"
index c99a3506e105731bcfcc319e5fce8fb5bc95cb88..2291a1401d64e8a1952b47abeecbc5f359d6772b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -61,6 +61,11 @@ export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
 # This is equivalent to 'auto-load' but with '.breakpoints'
 # Remove this as well if you don't like 'auto-load'
 alias gdb="gdb-posix -ex 'source .breakpoints'"
+
+# Debian comes with Wayland so this is what I use
+# If you use X, then xclip is what you're looking for
+alias tmux-copy="tmux show-buffer | wl-copy"
+alias tmux-paste="wl-paste"
 ```
 
 ## .ssh config