Created
October 4, 2020 04:34
-
-
Save letranloc/4b0f93c369fea2eb113ed47fe8f3114b to your computer and use it in GitHub Desktop.
Some alias/fn
This file contains 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
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