From 1b792b30f0b7ae2290ce26ff30c6691e3f12bf14 Mon Sep 17 00:00:00 2001 From: Marek Tihkan Date: Fri, 27 Dec 2013 10:54:51 +0200 Subject: [PATCH] Adds common aliases --- zsh/aliases | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/zsh/aliases b/zsh/aliases index 3cb4e22..759f4ef 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -4,7 +4,35 @@ alias rmate="mate app config db deploy experiments features lib spec vendor Gemf alias s="git status --short" alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" +# ls, the common ones I use a lot shortened for rapid fire usage +alias ls='ls -G' #I like color +alias l='ls -lFh' #size,show type,human readable +alias la='ls -lAFh' #long list,show almost all,show type,human readable +alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable +alias lt='ls -ltFh' #long list,sorted by date,show type,human readable +alias ll='ls -l' #long list +alias ldot='ls -ld .*' + +alias grep='grep --color' +alias t='tail -f' +alias h='history' + +# Command line head / tail shortcuts +alias -g H='| head' +alias -g T='| tail' +alias -g G='| grep' +alias -g L="| less" +alias -g M="| most" +alias -g LL="2>&1 | less" +alias -g CA="2>&1 | cat -A" +alias -g NE="2> /dev/null" +alias -g NUL="> /dev/null 2>&1" + +alias dud='du -d 1 -h' +alias duf='du -sh *' +alias fd='find . -type d -name' +alias ff='find . -type f -name' + alias ..="cd .." alias cls="clear" -