From 1fa1dd23a2f04a34732db31a7bf6122fdd72c37b Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 28 Sep 2021 20:38:12 +0200 Subject: zsh add global aliases .zsh.after/aliases.zsh: Add global aliases to 'after' location. --- .zsh.after/aliases.zsh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index 6d3c3eb..20a055f 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -1,5 +1,5 @@ # < ZSH ALIASES -## EXTENSIONS +# suffix aliases alias -s pdf='mupdf' alias -s ps='mupdf' alias -s jpg='feh' @@ -13,7 +13,18 @@ alias -s tlz='tar --lzma -xvf' alias -s rar='unrar x' alias -s tex='mkpdf' -##LS +# global aliases +alias -g ...='../..' +alias -g ....='../../..' +alias -g .....='../../../..' +alias -g C='| wc -l' +alias -g H='| head' +alias -g L="| less" +alias -g N="| /dev/null" +alias -g S='| sort' +alias -g G='| grep' + +# ls alias ls='ls --group-directories-first --color=auto' alias ll="ls -lh" alias la="ls -a" -- cgit v1.2.3-70-g09d2