Skip to content

Instantly share code, notes, and snippets.

@mertbozkir
Last active June 22, 2024 21:44
Show Gist options
  • Save mertbozkir/9ff1b93ac6792b068c75f0635be9290e to your computer and use it in GitHub Desktop.
Save mertbozkir/9ff1b93ac6792b068c75f0635be9290e to your computer and use it in GitHub Desktop.
Updated Cypher theme with virtualenv
# Based on evan's prompt
# Shows the exit status of the last command if non-zero
# Uses "#" instead of "»" when running with elevated privileges
# local venv_prompt='$(virtualenv_prompt_info)'
# PROMPT='%{${fg_bold[blue]}%}$(virtualenv_prompt_info)'
PROMPT="%m %{${fg_bold[red]}%}::%{${fg[green]}%} %3~%{${reset_color}%} $(virtualenv_prompt_info)%(0?. . ${fg[red]}%? )%{${fg[blue]}%}» "
# PROMPT="%{${fg_bold[white]}%} %m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . %{${fg[red]}%}%? )%{${fg[blue]}%}$(virtualenv_prompt_info)» %{${reset_color}%}"
ZSH_THEME_VIRTUALENV_PREFIX=""
ZSH_THEME_VIRTUALENV_SUFFIX=""
@mertbozkir
Copy link
Author

cd  ~/.oh-my-zsh/themes  
vi cypher.zsh-theme
source ~/.zshrc

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