Skip to content

Instantly share code, notes, and snippets.

@letranloc
Created October 4, 2020 04:34
Show Gist options
  • Save letranloc/4b0f93c369fea2eb113ed47fe8f3114b to your computer and use it in GitHub Desktop.
Save letranloc/4b0f93c369fea2eb113ed47fe8f3114b to your computer and use it in GitHub Desktop.
Some alias/fn
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias docker-inspect-ip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"
anaconda3_active()
{
eval "$(/opt/anaconda3/bin/conda shell.zsh hook)"
}
anaconda3_deactivate()
{
conda deactivate
}
venv3()
{
[ ! -d ".venv" ] && python3 -m venv .venv
source .venv/bin/activate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment