https://github.com/lyytaw/taw-ys.zsh-theme
基于ys的定制化oh-my-zsh主题,支持python的prompt显示
https://github.com/lyytaw/taw-ys.zsh-theme
zsh-theme
Last synced: 4 days ago
JSON representation
基于ys的定制化oh-my-zsh主题,支持python的prompt显示
- Host: GitHub
- URL: https://github.com/lyytaw/taw-ys.zsh-theme
- Owner: lyytaw
- License: mit
- Created: 2019-02-14T05:17:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-23T15:49:04.000Z (over 4 years ago)
- Last Synced: 2024-05-21T13:55:38.038Z (over 1 year ago)
- Topics: zsh-theme
- Homepage:
- Size: 16.6 KB
- Stars: 35
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - cayun - Shows active Python version and `git` decorations in the prompt. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - cayun - Shows active Python version and `git` decorations in the prompt. (Themes / ZSH on Windows)
- awesome-zsh-plugins - cayun - Shows active Python version and `git` decorations in the prompt. (Themes / Zinit (née zplugin))
README
# taw-ys.zsh-theme
taw-ys为一个[oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)主题,在[主题ys](https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/ys.zsh-theme)基础上修改而成。主要是做针对python环境的prompt显示。
目前将主题分为了virtualenv和conda两种,请自行选用自己需要的。如只使用原生python,选用任一种均可。
## 效果预览
#### 未激活虚拟环境环境

#### virtualenv

#### conda

## 使用方式
#### virtualenv
1. 将taw-ys-virtualenv.zsh-theme文件拷贝到~/.oh-my-zsh/themes下
2. 修改~/.zshrc中的theme配置为taw-ys-virtualenv
3. 在~/.zshrc中添加`export VIRTUAL_ENV_DISABLE_PROMPT=true`
#### conda
1. 将taw-ys-conda.zsh-theme文件拷贝到~/.oh-my-zsh/themes下
2. 修改~/.zshrc中的theme配置为taw-ys-conda
3. 在~/.condarc中添加`changeps1: False`