Skip to content

Instantly share code, notes, and snippets.

@mstoltenburg
Last active May 16, 2018 08:32
Show Gist options
  • Save mstoltenburg/9401643 to your computer and use it in GitHub Desktop.
Save mstoltenburg/9401643 to your computer and use it in GitHub Desktop.
alias ll='ls -laGh'
# /usr/local/opt/python2/bin:
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
# path to Firefox v42 and Chromium for pytest
export ZEIT_WEB_FF_BINARY=/Users/slomo/Applications/Firefox42.app/Contents/MacOS/firefox-bin
export ZEIT_WEB_CHROMIUM_BINARY=/Applications/Chromium.app/Contents/MacOS/Chromium
# pimp my history
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend
alias h='history'
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# MAGENTA="\[\033[0;35m\]"
# YELLOW="\[\033[0;33m\]"
# BLUE="\[\033[34m\]"
# LIGHT_GRAY="\[\033[0;37m\]"
# CYAN="\[\033[0;36m\]"
# GREEN="\[\033[0;32m\]"
# orange 01;33
source ~/.git-completion.bash
source ~/.git-prompt.sh
hg_ps1() {
hg prompt "{ [+{incoming|count}]}{ ({branch})}{status}{ {node|short}}" 2> /dev/null
}
__my_ps1() {
local g=$(__git_ps1)
if [[ -n "$g" ]]; then
echo "$g"
else
hg_ps1
fi
}
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[0;35m\]$(__my_ps1)\[\033[01;34m\] \$\[\033[00m\] '
# export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[0;35m\]$(__git_ps1)$(hg_ps1)\[\033[01;34m\] \$\[\033[00m\] '
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment