Created
November 14, 2012 01:53
-
-
Save ethul/4069749 to your computer and use it in GitHub Desktop.
.bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enables bash auto-completion for homebrew packages | |
source $(brew --prefix)/Library/Contributions/brew_bash_completion.sh | |
source $(brew --prefix)/etc/bash_completion.d/git-completion.bash | |
source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh | |
source $(brew --prefix)/etc/bash_completion.d/scala | |
# Coreutils commands are prefixed with "g", in order to use them with | |
# their real names, uncomment the following. | |
#PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" | |
#MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH" | |
# Use the homebrew bin first | |
export PATH=$(brew --prefix)/bin:$PATH | |
# No dupes or spaces in the history | |
export HISTCONTROL=ignoredups:ignorespace | |
# Use larger history | |
export HISTSIZE=5000 | |
export HISTFILESIZE=10000 | |
# Prefix for byobu | |
export BYOBU_PREFIX=$(brew --prefix) | |
# Set color for commands | |
alias ls='ls -G' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias topcpu='top -o cpu -s 3 -n 20 -stats cpu,command,time,threads,pid,ppid,pgrp,state' | |
alias topmem='top -o rsize -s 3 -n 20 -stats rsize,command,vsize,vprvt,kprvt,kshrd,pid,state' | |
alias ps='ps -aefww' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment