Skip to content
forked from igormp/Imp

Elegant Oh-my-zsh themes & support to Conda env

Notifications You must be signed in to change notification settings

GuanglinDu/Imp-extended

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imp-extended themes

Themes based on Imp to provide more prompt symbol options. File imp.zsh-theme is Igor Moura's original one, which I used as a template.

20221014: Beautiful conda env and Python version info support was added. It's after the Git info on the first prompt line. This feature is based on taw-ys.zsh-theme. These new themes work correctly even if there exists no conda.

Imp conda theme demo

Installation

  1. Follow the oh-my-zsh instructions to install oh-my-zsh;
  2. Follow the Imp instructions to install and configure the Imp theme;
  3. And then run the following to install more prompt options:
mkdir -p $ZSH_CUSTOM/themes &&
for s1 in ampersand asterisk at-sign close-brace close-bracket close-parenthesis colon dollar exclamation-mark greater-than hash less-than open-brace open-bracket open-parenthesis percent-sign pipe plus question-mark semicolon tilde; do curl https://raw.githubusercontent.com/GuanglinDu/Imp-extended/master/imp-"$s1".zsh-theme -L -o "$ZSH_CUSTOM"/themes/imp-"$s1".zsh-theme; done

Then set the theme in your .zshrc file. By default, the pipe theme is selected. Modify according to your case.

#ZSH_THEME="imp"
#ZSH_THEME="imp-ampersand"
#ZSH_THEME="imp-asterisk"
#ZSH_THEME="imp-at-sign"
#ZSH_THEME="imp-close-brace"
#ZSH_THEME="imp-close-bracket"
#ZSH_THEME="imp-close-parenthesis"
#ZSH_THEME="imp-colon"
#ZSH_THEME="imp-dollar"
#ZSH_THEME="imp-exclamation-mark"
#ZSH_THEME="imp-greater-than"
#ZSH_THEME="imp-hash"
#ZSH_THEME="imp-less-than"
#ZSH_THEME="imp-open-brace"
#ZSH_THEME="imp-open-bracket"
#ZSH_THEME="imp-open-parenthesis"
#ZSH_THEME="imp-percent-sign"
ZSH_THEME="imp-pipe"
#ZSH_THEME="imp-plus"
#ZSH_THEME="imp-question-mark"
#ZSH_THEME="imp-semicolon"
#ZSH_THEME="imp-tilde"
  1. To support conda env and Python version info elegantly, install the imp-conda*.zsh-themes. Five themes are available at present: imp-conda, imp-conda-dollar, imp-conda-has, imp-conda-percent-sign, and imp-conda-pipe.
mkdir -p $ZSH_CUSTOM/themes &&
curl https://raw.githubusercontent.com/GuanglinDu/Imp-extended/master/imp-conda.zsh-theme -L -o "$ZSH_CUSTOM"/themes/imp-conda.zsh-theme &&
for s1 in conda-dollar conda-hash conda-percent-sign conda-pipe; do curl https://raw.githubusercontent.com/GuanglinDu/Imp-extended/master/imp-"$s1".zsh-theme -L -o "$ZSH_CUSTOM"/themes/imp-"$s1".zsh-theme; done

Then set the theme in your .zshrc file. By default, the pipe theme is selected. Modify according to your case.

#ZSH_THEME="imp-conda"
#ZSH_THEME="imp-conda-dollar"
#ZSH_THEME="imp-conda-hash"
ZSH_THEME="imp-conda-percent-sign"
#ZSH_THEME="imp-conda-pipe"

In your ~/.condarc (create if it doesn't exist), add the following line to disable conda to change the environment varible PS1.

changeps1: False

Enjoy a slew of the elegant Oh-my-zsh prompt themes on your on your every beautiful day!

About

Elegant Oh-my-zsh themes & support to Conda env

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%