Skip to content

Instantly share code, notes, and snippets.

@fselcukcan
Created February 22, 2021 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fselcukcan/61206229adcebe3684665004ea55a9cc to your computer and use it in GitHub Desktop.
Save fselcukcan/61206229adcebe3684665004ea55a9cc to your computer and use it in GitHub Desktop.
# emacs. make emacs default editor
export VISUAL=$EDITOR
export EDITOR=emacs
# git. source git-completion.bash for autocomplete in git
source /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash
# git. source git-prompt.sh to eb able to modify PS1 with git info
source /Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUPSTREAM=auto
# node. nvm.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# node. npm. add npm bin to path
export PATH=$PATH:~/.npm/bin
# colorize. Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
# colorize. Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# colorize.
export TERM="xterm-color"
# colorize. git.
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\[\e[0;32m\]$(__git_ps1)\[\e[0m\] \$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment