Last active
August 21, 2019 17:12
-
-
Save excenter/fd9857657cafb8c59c40d0e8f4925dc5 to your computer and use it in GitHub Desktop.
Hot andrew dev environment on macos
This file contains 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
export PS1="CMP_NAME @\w >_ " | |
alias rmf='rm -rf' | |
alias ls='ls -F' | |
alias apache='sudo apachectl' | |
alias svim='sudo vim' | |
#mvn nonsense on terminal startup | |
export NVM_DIR="/Users/abatz/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
nvm use --silent stable | |
# Eternal bash history. | |
# --------------------- http://stackoverflow.com/questions/9457233/unlimited-bash-history | |
# Undocumented feature which sets the size to "unlimited". | |
# http://stackoverflow.com/questions/9457233/unlimited-bash-history | |
export HISTFILESIZE= | |
export HISTSIZE= | |
export HISTTIMEFORMAT="[%F %T] " | |
# Change the file location because certain bash sessions truncate .bash_history file upon close. | |
# http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login | |
export HISTFILE=~/.bash_eternal_history | |
# Force prompt to write history after every command. | |
# http://superuser.com/questions/20900/bash-history-loss | |
PROMPT_COMMAND="history -a; $PROMPT_COMMAND" | |
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" | |
export PATH="$HOME/.yarn/bin:$PATH" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
eval "$(pyenv init -)" | |
export LDFLAGS="-L/usr/local/opt/zlib/lib" | |
export CPPFLAGS="-I/usr/local/opt/zlib/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig" |
This file contains 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
# not on full auto. Run with caution. | |
# Install Xcode (manual) | |
# Install Xcode Tools | |
xcode-select --install | |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew upgrade | |
# Install pyenv | |
brew install pyenv | |
# Install pyenv-which-extension | |
brew install --HEAD pyenv-which-ext | |
pyenv install 3.7.4 | |
pyenv global 3.7.4 | |
# Install AWS CLI | |
pip install awscli --upgrade --user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment