-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding current Github repo status #12
Comments
Could you elaborate on this? Don't you confuse this project (which is called fiZsh) with another project (called fish)? |
No. I just tried to use the same method I would use in fish with fizsh. I just want the current GitHub repo status to appear in the $PS1 when I cd into a repo directory. |
In that case you could modify the file called 'fizsh-prompt.zsh'. I would turn the current Github repo status into a string, and mould it in some way into the environment variable $_fizsh_prompt. |
fish and fizsh are different. Fizsh is zsh, fish is a different shell. |
Okay, I got the current github repo status working. But I cannot get my PS1 to show colors in zsh at all. here is my .zshrc:
The PS1 shows up fine in terminal besides the colors not showing up. I tried adding |
Why do you modify P.S. In the past I noticed some unexpected behaviour when I sourced |
Here is the git-prompt.zsh:
Again the git repo status (via this script) is working totally fine. That's why I modified .zshrc, to assign a PS1 directly. Unless you mean assigning a PS1 in .fizsh |
In the original file |
I tried merging my I am skeptical that sourcing autoload -U colors && colors
# Colors
eval red='$FG[203]'
eval green='$FG[184]'
eval yellow='$FG[221]'
eval blue='$FG[081]'
eval grey='$FG[145]'
local _current_dir="%{$green%}%1~%{$reset_color%} "
PS1="%{$red%}%n%{$reset_color%}%{$grey%}@%{$yellow%}%m ${_current_dir}%{$blue%}%v%{$reset_color%} $ " |
I think I may switch to Oh-My-Zsh since it also has matlab like history searches via the substring search module |
It is a free world. zsh-history-substring-search is included in both Oh-My-Zsh and fizsh. (I am one of the authors of zsh-history-substring-search). |
Tried adding something like this:
The text was updated successfully, but these errors were encountered: