Skip to content

Instantly share code, notes, and snippets.

@mbacou
Created March 6, 2017 10:14
Show Gist options
  • Save mbacou/4b5eba89657df83293675e8e13e11d67 to your computer and use it in GitHub Desktop.
Save mbacou/4b5eba89657df83293675e8e13e11d67 to your computer and use it in GitHub Desktop.
Bash init (Ubuntu 16.10)
# ------------------------
# prompt
# ------------------------
alias ls="ls --color"
alias ll="ls -l"
# ------------------------
# alias
# ------------------------
alias h=history
alias rm="rm -i"
alias gc="git commit -am"
alias gp="git push"
alias edit="emacsclient -c -a ''" # assumes emacs daemon
# ------------------------
# Environment
# ------------------------
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR should open in terminal
export VISUAL="emacsclient -c -a ''" # $VISUAL opens in GUI
export WORKON_HOME="~/.virtualenvs" # Python env default location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment