]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
add wrapper for systemctl with shorter commands
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 71e07dd70617c1f3501d827dbdef849b8c0c5ed5..ff59f86b59d30010062d43b6b720c847bda4c621 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -790,6 +790,7 @@ compdef slocate=locate
 compdef srsync=rsync
 compdef srsync-incremental=rsync
 compdef svalgrind=valgrind
+compdef sc=systemctl
 
 
 # CUSTOM ALIASES AND FUNCTIONS
@@ -845,6 +846,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 ...='../..'