Skip to content

Instantly share code, notes, and snippets.

@d8vjork
Last active March 16, 2019 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d8vjork/e8d86b044ff803f7f6ea47d14a5ac53f to your computer and use it in GitHub Desktop.
Save d8vjork/e8d86b044ff803f7f6ea47d14a5ac53f to your computer and use it in GitHub Desktop.
Mac OS/Linux Bash config (makes ur life easier)
export NVM_DIR=~/.nvm
export PATH="${PATH}:${HOME}/.composer/vendor/bin"
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="$PATH:$HOME/flutter/bin"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias gitclean='git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d && git remote prune origin'
alias dockerclean='docker stop $(docker ps -aq) && docker rm $(docker ps -a -q) -f'
alias dockerwash='docker rmi $(docker images -q)'
alias dockerstop='docker stop $(docker ps -a -q)'
alias dockerkill='docker kill $(docker ps -q)'
alias dockerprune='docker system prune --all --force --volumes'
alias dockerreset='docker stop $(docker container ls -a -q) && docker system prune -a -f --volumes'
alias gs='git status'
alias gl='git log'
alias gaa='git add .'
alias gc='git commit -m '
alias ls='ls -GFh'
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion;
fi
source $(brew --prefix nvm)/nvm.sh

Mac OS developer computer

Add the file code below as a different file (for example: .bash_dev_profile) and then add this on the bottom of your .bash_profile:

if [ -f $HOME/.bash_dev_profile ]; then
  source $HOME/.bash_dev_profile
fi

Important note: This is for my own personal purposes, but anyone can grab and use it if you know how to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment