Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Danny's Bash Profile
# This function builds your prompt. It is called below
function prompt {
# Define some local colors
local RED="\[\033[0;31m\]" # This syntax is some weird bash color thing I never
local LIGHT_RED="\[\033[1;31m\]" # really understood
local CHAR="danny"
# ♥ ☆ ♪ - Keeping some cool ASCII Characters for reference
# Here is where we actually export the PS1 Variable which stores the text for your prompt
export PS1="\[\e]2;\u@\h\a[\[\e[37;44;1m\]\t\[\e[0m\]]$RED\$(parse_git_branch) \[\e[32m\]\W\[\e[0m\]\n\[\e[0;31m\]$CHAR \[\e[0m\]"
PS2='> '
PS4='+ '
}
# Finally call the function and our prompt is all pretty
prompt
# Atom keyboard shortcut alias
alias atom="open -a 'Atom'"
# Visual Studio Code keyboard shortcut alias
alias code="open -a 'Visual Studio Code'"
# An alias to cd into the kickstarter codebase folder from anywhere
alias kick="cd ~/Projects/kickstarter"
# Other aliases:
alias ios="cd ~/Projects/ios-oss"
alias me="cd ~/Projects/dannywhite.site"
alias jek="bundle exec jekyll serve"
alias jeki="bundle exec jekyll serve --incremental"
alias cl="cd ~/Projects/climatelocal"
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.