Last active
February 22, 2016 04:06
-
-
Save drewvolz/2a8fa7b90f6824941c93 to your computer and use it in GitHub Desktop.
This file contains 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
# User specific aliases and functions | |
# This is for use in your standard bash prompt | |
# Although I do prefer fish... | |
#Color Definitions | |
RED="\033[0;31m" | |
GREEN="\033[0;32m" | |
YELLOW="\033[0;33m" | |
BLUE="\033[0;34m" | |
MAGENTA="\033[0;35m" | |
CYAN="\033[0;36m" | |
DEFAULT="\033[0m" | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Source process area aliases | |
if [ -f ~/.bash/process-aliases.bash ]; then | |
. ~/.bash/process-aliases.bash | |
fi | |
# Source git completion script | |
if [ -f ~/.bash/git-completion.bash ]; then | |
. ~/.bash/git-completion.bash | |
fi | |
# Source the git prompt enhancement | |
if [ -f ~/.bash/git-prompt.bash ]; then | |
source ~/.bash/git-prompt.bash | |
export GIT_PS1_SHOWDIRTYSTATE=yes | |
# Fancy prompt that tells you what git branch you're using as well as whether you're in an ebo subshell | |
PS1="\[$RED\]\t\[$GREEN\]-\[$BLUE\]\u\[$GREEN\]@\[$YELLOW\]\h\[$GREEN\]:\[$CYAN\]\w\[\033[m\]\[$MAGENTA\]\$(__git_ps1)\[$DEFAULT\]\$ " | |
else | |
# Colored prompt that does not have git-prompt enabled | |
PS1="\[$RED\]\t\[$GREEN\]-\[$BLUE\]\u\[$GREEN\]@\[$YELLOW\]\h\[$GREEN\]:\[$CYAN\]\w\[\033[m\]\[$DEFAULT\]\$ " | |
fi | |
# Set the colorscheme for 'ls' | |
eval `dircolors -b` | |
# PROMPTS | |
export PS1 | |
alias ls='ls -la --color=always' | |
alias psg='ps faux | grep ' | |
export EDITOR=vim | |
#Load Bash directives local to the given machine | |
if [ -f ~/.bash_local ]; then | |
. ~/.bash_local | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment