aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-09-28 20:38:12 +0200
committerDavid Runge <dave@sleepmap.de>2021-09-28 20:38:12 +0200
commit1fa1dd23a2f04a34732db31a7bf6122fdd72c37b (patch)
tree8144e23ce36ad1a57574a801fbc044d184edd948
parent7b3caefd51fc1aa334808a8a7f280b9fb10c7cfe (diff)
downloaddotfiles-1fa1dd23a2f04a34732db31a7bf6122fdd72c37b.tar.gz
dotfiles-1fa1dd23a2f04a34732db31a7bf6122fdd72c37b.tar.bz2
dotfiles-1fa1dd23a2f04a34732db31a7bf6122fdd72c37b.tar.xz
dotfiles-1fa1dd23a2f04a34732db31a7bf6122fdd72c37b.zip
zsh add global aliases
.zsh.after/aliases.zsh: Add global aliases to 'after' location.
-rw-r--r--.zsh.after/aliases.zsh15
1 files 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"