Created
July 28, 2019 15:36
-
-
Save dnywh/5856920a9579200f59bbcc8bfe76b05c to your computer and use it in GitHub Desktop.
Danny's Bash Profile
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
| # 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