Skip to content

Instantly share code, notes, and snippets.

@dvdotsenko
Created December 22, 2020 18:22
Show Gist options
  • Save dvdotsenko/ceb1cd8aeb326052f23e3867e4cdafac to your computer and use it in GitHub Desktop.
Save dvdotsenko/ceb1cd8aeb326052f23e3867e4cdafac to your computer and use it in GitHub Desktop.
Mac ZSH RC
autoload -U colors && colors
PS1="%{$fg[yellow]%}%~ %{$reset_color%}# "
CLICOLOR=1
LSCOLORS=gafacadabaegedabagacad
alias vv="source ./.venv/bin/activate"
alias ll="ls -la -G"
alias git_clean_local="git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d"
alias git_clean_remote="git branch -r --merged | grep -v '\*\|master\|devops\|newdevops\|stable' | sed 's/origin\///' | xargs -n 1 git push --delete origin"
alias gph="git push origin HEAD"
alias grh="git reset HEAD~"
alias docker_clean="docker rm -v $(docker ps -a -q -f status=exited) && docker rmi -f $(docker images -f "dangling=true" -q) && docker volume ls -qf dangling=true | xargs -r docker volume rm"
alias dk="docker ps -q | xargs docker kill"
alias dps="docker ps"
alias kk="kubectl"
alias kkc="kk config set-context --current"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# export JAVA_HOME=/usr/local/Cellar/openjdk/14.0.1
export JAVA_HOMR=$(/usr/libexec/java_home)
alias python=/usr/local/bin/python3.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment