Fucntional theme for oh my zsh
-
Paste the mighty_mike.zsh-theme into /.oh-my-zsh/themes
-
Open you ~/.zshrc file and add the following:
# Define the theme
ZSH_THEME="mighty-mike"
# Alias to enter/exit Python virtual env
alias pysrc="source ./venv/bin/activate"
alias zsrc="source ~/.zshrc && export VIRTUAL_ENV=''"
# FOR WINDOWS:
alias activate="source ./venv/Scripts/Activate"
# Function to detect in Python virtual is active
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '[🐍]'
}
- Source the changes
source ~/.zshrc
NOTE: This is still a work in progress, there my be bugs.