Created
December 10, 2015 05:58
-
-
Save shimmerjs/b860d28db653bf6a0bce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# git niceties | |
# branch and branch status | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source $GITAWAREPROMPT/main.sh | |
# auto completion | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi | |
# do some color stuff to make dracula work properly | |
export CLICOLOR=1 | |
export TERM=xterm-256color | |
################################################################################ | |
# colors | |
export RED="\[\033[0;31m\]" | |
export RED_BOLD="\[\033[01;31m\]" | |
export BLUE="\[\033[0;34m\]" | |
export CYAN='\[\e[0;36m\]' | |
export PURPLE='\[\e[0;35m\]' | |
export GREEN="\[\033[0;32m\]" | |
export YELLOW="\[\033[0;33m\]" | |
export BLACK="\[\033[0;38m\]" | |
export NO_COLOUR="\[\033[0m\]" | |
# scheme | |
export C_RESET='\[\e[0m\]' | |
export C_PATH=$YELLOW | |
export C_GIT_DIRTY=$CYAN | |
export C_GIT_BRANCH=$RED | |
export C_GIT_BRACKETS=$GREEN | |
export C_AT=$PURPLE | |
export C_PROMPT=$BLUE | |
################################################################################ | |
# do some silly stuff if im on my machine, otherwise display normal user & host | |
if [[ `hostname | cut -d'.' -f 1` == alexmbp ]]; then | |
host=🏠️ | |
else | |
host=$HOSTNAME | |
fi | |
if [[ $USER == alex ]]; then | |
user=👻 | |
else | |
user=$USER | |
fi | |
################################################################################ | |
# the prompt | |
export PS1="$user ${C_AT}@${C_RESET} $host ${C_AT}:${C_RESET} ${C_GIT_BRACKETS}[${C_RESET}${C_PATH} \w ${C_RESET}${C_GIT_BRACKETS}]${C_RESET} ${C_GIT_BRACKETS}{${C_RESET} ${C_GIT_BRANCH}\$git_branch${C_RESET} ${C_GIT_BRACKETS}}${C_RESET} ${C_GIT_BRACKETS}{${C_RESET} ${C_GIT_DIRTY}\$git_dirty${C_RESET} ${C_GIT_BRACKETS}}${C_RESET} \n ${C_PROMPT}↳${C_RESET} " | |
export PS2=" => " | |
################################################################################ | |
# aliases | |
alias e='subl' | |
alias ls='ls -GphFa' | |
alias chrome='open -a "Google Chrome"' | |
alias src='source' | |
alias ..='cd ..' | |
alias ...='cd ../../' | |
alias ....='cd ../../../' | |
alias ....='cd ../../../../' | |
alias c='clear' | |
alias mkdir='mkdir -pv' | |
################################################################################ | |
# user scoped global npm bin | |
PATH=$PATH:$HOME/npm/bin | |
# user scoped bin | |
PATH=$PATH:$HOME/bin | |
# MacPorts Installer addition on 2015-12-07_at_17:26:26: adding an appropriate PATH variable for use with MacPorts. | |
export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no repo and dirty branch


clean branch