Last active
July 13, 2022 18:02
-
-
Save nery/50809cdfb1dda1b58fd575eb51a2f5f2 to your computer and use it in GitHub Desktop.
generic 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
#enables color in the terminal bash shell export | |
export CLICOLOR=1 | |
#sets up the color scheme for list export | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
#sets up the prompt color (currently a green similar to linux terminal) | |
MAGENTA="\033[1;36m" | |
PURPLE="\033[1;35m" | |
GREEN="\033[01;32m" | |
ORANGE="\033[01;31m" | |
WHITE="\033[01;37m" | |
RESET="\033[0m" | |
alias dev='cd ~/Developer/' | |
alias pull='git pull origin' | |
alias push='git push origin' | |
alias co='git checkout' | |
alias gm='git merge' | |
alias gs='git status' | |
alias gb='git branch' | |
alias gd='git push origin --delete' | |
alias dns-clear='sudo dscacheutil -flushcache' | |
alias ls='ls -la' | |
alias gl="git log --pretty=oneline" | |
alias dkc='docker-compose' | |
alias dk='docker' | |
# function to find working git branch | |
function parse_git_branch { | |
ref=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} | |
export PS1="\[$WHITE\]\u\[$WHITE\]@\[$ORANGE\]\h \[$WHITE\]\w\[$GREEN\]\$([[ -n \$(git branch 2> /dev/null) ]]&&echo \" on 🌿\")\[$PURPLE\] \$(parse_git_branch)\[$RESET\]: " | |
#enables color for iTerm2 | |
export TERM=xterm-color | |
# VS Code text editor | |
export EDITOR='code --wait' | |
# Python | |
export PATH="/usr/local/opt/[email protected]/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment