My personal custom .bash_prompt, .bashrc, and .bash_profile.
The .bash_prompt is based on Extravagant Zsh Prompt and a few others.
- All Bash terminal applications
- Open your home folder and find your existing
.bash_profileand.bash_prompt. Then open them in your favorite text editor.
☝️ Tip: These may not exist. If not, go ahead and create the files in your user root ~. Don't forget the leading "." in the file names.
-
Copy the contents of the
.bash_profileand.bash_promptfrom the repo versions into your files located at~. Then go ahead and save each file. -
Copy and paste the
git-completion.bashfile into your user root~. This will add really useful tab completion for git repos. -
Restart your terminal application or re-source your
.bash_profile. -
Enjoy the new styles and git functionality!
alias cddev="cd ~/Projects"alias search="cat ~/.bash_history | grep"
alias gaa="git add -A"alias ga="git add"alias gcm="git commit -m"alias gcv="git cz"alias gco="git checkout"alias gcob="git checkout -b"alias gbd="git branch -D"alias gf="git fetch"alias gpu="git pull"alias gph="git push"alias gm="git merge"alias gs="git status"alias gr="git remote -v"alias glp="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

