]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: add X alias to return current X selection
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index f638ee8313e49cc42bb19335fb994b888dc87560..6bc2d3b9e3d65e564ab45cd657f7d56cc31c999e 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -773,7 +773,9 @@ zstyle ':completion:*:*:-command-:*' ignored-patterns './config.*'
 # Don't complete unwanted files with Vim. Thanks to Nomexous in #zsh on
 # Freenode (2010-06-06 04:54 CEST). See below for a way to complete them.
 zstyle ':completion:*:*:vim:*:all-files' ignored-patterns \
-    '*.aux' '*.log' '*.pdf' \
+    '*.aux' '*.log' '*.pdf' '*.bbl' '*.blg' '*.out' '*-blx.bib' '*.run.xml' \
+    '*.o' \
+    '*.pyc' \
     '*.class'
 
 # Provide a fallback completer which always completes files. Useful when Zsh's
@@ -843,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 ...='../..'