]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: prepend "--" in X alias
authorSimon Ruderich <simon@ruderich.org>
Wed, 13 Nov 2019 08:09:21 +0000 (09:09 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 13 Nov 2019 08:45:19 +0000 (09:45 +0100)
Prevents possible interpretation of options from X selection.

shell/zsh/rc

index 0f6e2e09dae0dffc6cfd6c728a3e581084f8b722..660430cc3789504c5433c4da0969c8927166a5c8 100644 (file)
@@ -855,7 +855,7 @@ alias -g S='| sort'
 alias -g SL='| sort | less'
 alias -g T='| tail'
 alias -g U='| uniq'
 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 ...='../..'
 
 # Make going up directories simple.
 alias -g ...='../..'