Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 76 lines (64 sloc) 1.998 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
# Create some basic shorthands
alias g='git'
alias v='vim'
alias e='vim'
alias c='clear'
alias m='mosh'
alias x='clear; exit'
alias claer='clear' # Take into account typo.

# Make some possibly destructive commands more interactive.
alias rm='rm -i'
alias rmi='rm -i'
alias mv='mv -i'
alias mvi='mv -i'
alias cp='cp -i'
alias cpi='cp -i'

# Add some easy shortcuts for formatted directory listings and add a touch of color.
alias l='ls -l'
alias la='ls -laFG'
alias ll='ls -lFG'
alias ls='ls -FG'

alias ..='cd ..'
alias ...='cd ../../'
alias cdd='cd -'

# Add md5sum alias
alias md5sum='md5 -r'

# Alias to make vi like vim.
alias vi='vim'

# Use vimpager as lest replacement
alias less=$PAGER
alias zless=$PAGER

# Make tmux defaut to utf-8
alias tmux='tmux -u'

# Alias to make sure Homebrew is run as regular user
alias b='brew'
alias brwe='brew'
alias bup='brew update'
alias bupg='brew upgrade'
alias fixbrew='sudo chown -R $USER /usr/local'
alias fixextra='sudo chown -R $USER /Library/Ruby /Library/Perl /Library/Python'
alias pushbrew='cd $(brew --prefix); brew update && git push MindTooth master; cd -'

# Other aliases
alias cleanlaunch='rm ~/Library/Application\ Support/Dock/*.db; killall Dock'

# Some Git shorthands
# Source http://www.catonmat.net/blog/git-aliases/
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias gs='git status'
alias gd='git diff'
alias gdc='git diff --cached'
alias gm='git commit -m'
alias gma='git commit -am'
alias gb='git branch'
alias gc='git checkout'
alias gra='git remote add'
alias grr='git remote rm'
alias gpu='git pull'
alias gcl='git clone'

# Rebuild the launchservices database
# https://coderwall.com/p/yo7h3g?i=4&p=1&q=sort%3Ascore+desc&t%5B%5D=cli
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'

# Taken for PeepCode
alias tu='top -o cpu' # CPU
alias tm='top -o vsize' # memory
Something went wrong with that request. Please try again.