Skip to content

Commit

Permalink
Adds common aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
marektihkan committed Dec 27, 2013
1 parent 6aa1549 commit 1b792b3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion zsh/aliases
Expand Up @@ -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"

0 comments on commit 1b792b3

Please sign in to comment.