summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-01-16 17:19:28 -0800
committerMike Crute <mike@crute.us>2020-01-16 17:19:33 -0800
commitc3fb2f9a82e901b031121922e3bbca86fa4b8189 (patch)
tree042466ae6fb45f90b5293cbb97fc9760ab484b71 /.bashrc
parent0a780e27424765a14b4746e14868cf83030234df (diff)
downloaddotfiles-c3fb2f9a82e901b031121922e3bbca86fa4b8189.tar.bz2
dotfiles-c3fb2f9a82e901b031121922e3bbca86fa4b8189.tar.xz
dotfiles-c3fb2f9a82e901b031121922e3bbca86fa4b8189.zip
Add xcopy alias
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 098cb7f..c1eae32 100644
--- a/.bashrc
+++ b/.bashrc
@@ -340,6 +340,7 @@ fi
340if have_command xclip; then 340if have_command xclip; then
341 alias cliptm="tmux set-buffer -b buffer0000 \"\$(xclip -o -selection clipboard)\"" 341 alias cliptm="tmux set-buffer -b buffer0000 \"\$(xclip -o -selection clipboard)\""
342 alias tmclip="tmux show-buffer 2>&1>/dev/null && tmux show-buffer | xclip -i -selection clipboard" 342 alias tmclip="tmux show-buffer 2>&1>/dev/null && tmux show-buffer | xclip -i -selection clipboard"
343 alias xcopy="xclip -i -selection clipboard"
343elif have_command pbcopy; then 344elif have_command pbcopy; then
344 alias cliptm="tmux set-buffer -b buffer0000 \"\$(pbpaste)\"" 345 alias cliptm="tmux set-buffer -b buffer0000 \"\$(pbpaste)\""
345 alias tmclip="tmux show-buffer 2>&1>/dev/null && tmux show-buffer | pbcopy" 346 alias tmclip="tmux show-buffer 2>&1>/dev/null && tmux show-buffer | pbcopy"