Skip to content

Instantly share code, notes, and snippets.

@excenter
Last active August 21, 2019 17:12
Show Gist options
  • Save excenter/fd9857657cafb8c59c40d0e8f4925dc5 to your computer and use it in GitHub Desktop.
Save excenter/fd9857657cafb8c59c40d0e8f4925dc5 to your computer and use it in GitHub Desktop.

Revisions

  1. excenter revised this gist Aug 21, 2019. 1 changed file with 46 additions and 0 deletions.
    46 changes: 46 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    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"
  2. excenter created this gist Jul 26, 2019.
    16 changes: 16 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # 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