lambda-mod-zsh-theme icon indicating copy to clipboard operation
lambda-mod-zsh-theme copied to clipboard

change some shell function

Open Vonfry opened this issue 6 years ago • 3 comments

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 avatar Apr 21 '18 10:04 Vonfry

Possible like #12

Vonfry avatar Apr 21 '18 10:04 Vonfry

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.

halfo avatar Apr 23 '18 06:04 halfo

$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.

Vonfry avatar May 05 '18 12:05 Vonfry