From: Simon Ruderich Date: Mon, 6 Apr 2015 22:17:22 +0000 (+0200) Subject: zsh/rc: add X alias to return current X selection X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7f2abcc166887fafb33cdd2b50e811a7dcbe1d5c;p=config%2Fdotfiles.git zsh/rc: add X alias to return current X selection --- diff --git a/zsh/rc b/zsh/rc index 71e07dd..6bc2d3b 100644 --- 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 ...='../..'