]> arthur.barton.de Git - ax-zsh.git/commitdiff
std_aliases: Add some "global" and "suffix" aliases
authorAlexander Barton <alex@barton.de>
Sun, 26 Nov 2023 12:20:50 +0000 (13:20 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 26 Nov 2023 12:21:00 +0000 (13:21 +0100)
Some of the global aliases are compatible to the ones defined by the
OhMyZsh plugin "common-aliases".

default_plugins/std_aliases/std_aliases.zshrc

index 9ef61c60a949dd3b8fbf25b425e0b622e144db7c..51c8f1f1f43389060fb3bc0c84df582f86e1b522 100644 (file)
@@ -23,3 +23,19 @@ alias -- -='cd -'
 
 alias md='mkdir -p'
 alias rd=rmdir
+
+# Global aliases
+
+alias -g C="| cut -d' '"
+alias -g G="| grep -i"
+alias -g H="| head"
+alias -g L="| less"
+alias -g LL="2>&1 | less"
+alias -g NUL=">/dev/null 2>&1"
+alias -g T="| tail"
+alias -g WL="| wc -l"
+alias -g X="| xargs"
+
+# Suffix aliases
+
+alias -s {c,cfg,conf,css,h,html,ini,json,md,me,rc,txt,yml,yaml}="$EDITOR"