Skip to content

Instantly share code, notes, and snippets.

@bobdenotter
Last active January 1, 2016 23:28
Show Gist options
  • Save bobdenotter/8216407 to your computer and use it in GitHub Desktop.
Save bobdenotter/8216407 to your computer and use it in GitHub Desktop.
alias dir='ls -alsG'
alias gpu="git pull; php composer.phar self-update; php composer.phar update;"
alias ip="echo -n 'local: '; ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'; echo -n 'external: '; curl ifconfig.me"
alias flushdns="dscacheutil -flushcache"
alias dotclean='find . -name ".DS_Store" -print0 | xargs -0 rm -rf; find . -name "._*" -print0 | xargs -0 rm -rf'
# Minder case-sensitive, en tab-completion gelijk bij eerste tab.
shopt -s nocaseglob
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous on"
# Als je twee keer `foo` typt, hoeft dat niet twee keer in de geschiedenis.
# Zo vervuil je minder en kan je sneller door de geschiedenis navigeren.
export HISTCONTROL=ignoreboth:erasedups # no duplicate entries
shopt -s histappend # append history file
export PROMPT_COMMAND="history -a"
export EDITOR='subl -w'
export PS1="\[$(tput setaf 4; tput bold)\][\t] \u@\h:\W \$ $(tput sgr0)"
export PATH=/usr/local/bin:$PATH:/usr/local/git/bin/:~/bin/:/Users/bob/Documents/android-sdk-macosx/platform-tools/
# Always enable GREP colors
export GREP_OPTIONS='--color=auto'
function cl(){ cd "$@" && dir; }
git config --global alias.lg "log --color --graph --date=short --pretty=format:'%Cred[%h]%Creset -%C(yellow)%d%Creset %s %Cgreen- %ad, %C(bold blue)<%an>%Creset' --abbrev-commit --"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment