]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: add X alias to return current X selection
authorSimon Ruderich <simon@ruderich.org>
Mon, 6 Apr 2015 22:17:22 +0000 (00:17 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 6 Apr 2015 22:17:49 +0000 (00:17 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 71e07dd70617c1f3501d827dbdef849b8c0c5ed5..6bc2d3b9e3d65e564ab45cd657f7d56cc31c999e 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -845,6 +845,7 @@ alias -g S='| sort'
 alias -g SL='| sort | less'
 alias -g T='| tail'
 alias -g U='| uniq'
+alias -g X='`xsel -p || xclip -o`' # X selection
 
 # Make going up directories simple.
 alias -g ...='../..'