halfo / lambda-mod-zsh-theme

A simple zsh theme.
MIT License
463 stars 105 forks source link

change some shell function #23

Open Vonfry opened 6 years ago

Vonfry commented 6 years ago

some function and variables such as: git_prompt_info, $fg and others are only available in oh-my-zsh. Maybe we can change them to use this theme without oh-my-zsh.

Take a look at agnoster theme. URL

Although the url is in oh-my-zsh, but the theme can use without it, it uses some function defined by itself to make sure all zsh command line can use it.

Vonfry commented 6 years ago

Possible like #12

halfo commented 6 years ago

This would be a really nice idea. We'd love to have some contribution for this feature. I hope you or anyone else would like to take the lead. Thanks.

Vonfry commented 6 years ago

$fg $bg and other variables are set by zsh/misc/colors which is loaded by zsh/complist.

git function, git_prompt_short_sha and git_prompt_status, can define explicitly in the theme file.

I have tried, but it failed to use on other framework.

oh-my-zsh use source to load theme, so zsh/misc/colors can work correctly. Others use zstyle or other method, which cannot use with zmodloaded ( for me ).

The best way, I think, is to use some thing like agnoster instead of colors. This may change the origin code a lot.