From: Simon Ruderich Date: Wed, 13 Nov 2019 08:09:21 +0000 (+0100) Subject: zsh/rc: prepend "--" in X alias X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=dab786b7775766e62acd77e57794d8425a5e6e35;p=config%2Fdotfiles.git zsh/rc: prepend "--" in X alias Prevents possible interpretation of options from X selection. --- diff --git a/shell/zsh/rc b/shell/zsh/rc index 0f6e2e0..660430c 100644 --- a/shell/zsh/rc +++ b/shell/zsh/rc @@ -855,7 +855,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 +alias -g X='-- "$(xsel -p || xclip -o)"' # X selection # Make going up directories simple. alias -g ...='../..'