Skip to content

Instantly share code, notes, and snippets.

@mbigras
Created March 1, 2021 23:19
Show Gist options
  • Save mbigras/5b7ccf2a3c008b8c3e2db7722368e1de to your computer and use it in GitHub Desktop.
Save mbigras/5b7ccf2a3c008b8c3e2db7722368e1de to your computer and use it in GitHub Desktop.
# Configure shell prompt
PS1="$ "
# Configure shell to not consider slashes part of a word
export WORDCHARS=${WORDCHARS/\/}
# Configure editor
export EDITOR="subl -wn"
# Set environment variables for Go programming
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# Initialize pyenv to manage python installations
eval "$(pyenv init -)"
# Configure python
export PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_DISABLE_PIP_VERSION_CHECK=1
# Initialize rbenv to manage Ruby installations
eval "$(rbenv init -)"
# Initialize nodenv to manage Node.js installations
eval "$(nodenv init -)"
# Add ssh key to ssh-agent when there are no keys (might only work on macOS)
ssh-add -l | grep "The agent has no identities." && ssh-add -K
# Initialize fzf fuzzy command-line tool
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment