From: Misomosi Date: Sat, 5 Oct 2024 05:41:54 +0000 (-0400) Subject: Add tmux copy+paste to bashrc X-Git-Url: http://git.misomosispi.com/?a=commitdiff_plain;h=19490eee992d6dd87e02efe9ec1dfb23538c1607;p=dotfiles.git Add tmux copy+paste to bashrc --- diff --git a/.bashrc b/.bashrc index 4e8bba6..43a7f14 100644 --- 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" diff --git a/README.md b/README.md index c99a350..2291a14 100644 --- 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