Last active
February 1, 2018 16:15
-
-
Save pavsidhu/76230273939974655587ad85fde332b7 to your computer and use it in GitHub Desktop.
My personal .bash_profile
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
# Change Bash's autocomplete to be case insenstive | |
bind "set completion-ignore-case on" | |
# Fancy PS1 | |
expressions=("π" "π" "πΌ" "π" "π" "πΎ" "π" "ποΈ" "π½" "π" "π₯" "π»" "π°" "βοΈ" "π") | |
selectedexpression=${expressions[$RANDOM % ${#expressions[@]} ]} | |
export PS1="\e[38;5;208m$(echo $selectedexpression) PavSidhu:\W > \[$(tput sgr0)\]\[$(tput sgr0)\]" | |
# Git Aliases | |
alias g="git" | |
alias a="git add" | |
alias r="git reset" | |
alias b="git branch" | |
alias co="git commit -m " | |
alias cl="git clone" | |
alias m="git merge" | |
alias s="git status" | |
alias st="git stash" | |
alias sl="git stash list" | |
alias sa="git stash apply" | |
alias c="git checkout" | |
alias p="git push" | |
alias pu="git pull" | |
alias pom="git push origin master" | |
# Docker Aliases | |
alias d="docker" | |
alias dc="docker-compose" | |
# Java Aliases | |
alias j="java" | |
alias jc="javac" | |
# Directory Aliases | |
alias uni="cd ~/Documents/University" | |
alias pro="cd ~/Documents/Projects" | |
alias docs="cd ~/Documents" | |
alias dl="cd ~/Downloads" | |
# Other Aliases | |
alias l="exa -a" | |
alias o="open ./" | |
alias c="cd" | |
alias cb="cd .." | |
alias y="yarn" | |
alias bp="code ~/.bash_profile" | |
# Open files with VSCode | |
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment