Skip to content

Instantly share code, notes, and snippets.

@countingtoten
Created August 21, 2018 20:14
Show Gist options
  • Save countingtoten/d9fbbc217df2b7ddabb01506a26655b0 to your computer and use it in GitHub Desktop.
Save countingtoten/d9fbbc217df2b7ddabb01506a26655b0 to your computer and use it in GitHub Desktop.
My bash config before I switched to zsh
#!/bin/bash
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export HOMEBREW_GITHUB_API_TOKEN=""
export GITLAB_PRIVATE_TOKEN=""
# Ruby (fixes Homebrew using system Ruby)
export GEM_HOME=$HOME/.gems
export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/2.3.0/"
export PATH="$PATH:$GEM_HOME/bin"
# Go
export GOPATH=$HOME/Code/GOPATH
export GOROOT=/usr/local/opt/go/libexec
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
# Rust
export CARGO_HOME=$HOME/.cargo
export PATH="$PATH:$CARGO_HOME/bin"
# Python
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH="$PATH:$(brew --prefix git)/share/git-core/contrib/diff-highlight:/usr/local/sbin:/usr/local/bin"
. /usr/local/etc/profile.d/z.sh
# Homebrew bash completion
if [ -f "$(brew --prefix)/etc/bash_completion" ]; then
# shellcheck source=/usr/local/etc/bash_completion
. "$(brew --prefix)/etc/bash_completion"
fi
# Exercism.io bash completion
if [ -f ~/.config/exercism/exercism_completion.bash ]; then
. ~/.config/exercism/exercism_completion.bash
fi
# Git bash completion
# shellcheck source=/usr/local/opt/git/etc/bash_completion.d/git-completion.bash
source "$(brew --prefix git)/etc/bash_completion.d/git-completion.bash"
# shellcheck source=/usr/local/etc/profile.d/z.sh
source "$(brew --prefix)/etc/profile.d/z.sh"
source /usr/local/share/chruby/chruby.sh
chruby ruby
source /usr/local/share/chruby/auto.sh
alias httpd='docker run --rm --tty --interactive -p 8000:80 --volume "$PWD":/usr/local/apache2/htdocs/ httpd'
alias sbt='docker run --rm --tty --interactive --volume "$PWD":/app bigtruedata/sbt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment