Skip to content

Instantly share code, notes, and snippets.

@pavsidhu
Last active February 1, 2018 16:15
Show Gist options
  • Save pavsidhu/76230273939974655587ad85fde332b7 to your computer and use it in GitHub Desktop.
Save pavsidhu/76230273939974655587ad85fde332b7 to your computer and use it in GitHub Desktop.
My personal .bash_profile
# 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