Closed hrvoj3e closed 5 years ago
Hey @hrvoj3e!
I really like the idea of having directories that would be skipped in showing the git section, however, this feature would first need to be accepted into the spaceship project to avoid having diverging feature sets.
I'll be closing this for the time being, but if an equivalent feature is ever considered for addition to spaceship, we can certainly have this feature added here as well. π
Feature Request
Add and option to list regex and/or glob patterns to skip git features.
I am new to this theme - don't know if it is compatible with Spaceship.
My current fix
I have mounted projects via
sshfs
in~/code/sshfs/client/project/another/stuff/
. Commandgit status --porcelain -b
never ends oversshfs
(I always kill it after 3-4 minutes).Setting
set -g SPACEFISH_GIT_SHOW false
helps a lot. I still get some git info like branches (but no status). But at least I can runls
inside dir with.git
oversshfs
.What I have so far. It works for me for now.
~/.config/fish/fish_prompt_git_disable.fish
Call my function inside
fish_prompt
before setting other defaults.~/.config/fish/fish_prompt.fish
Maybe I should try with removing
git
keyword fromSPACEFISH_PROMPT_ORDER
. Which is better?Variable
SPACEFISH_GIT_STATUS_SHOW
can be used insteadSPACEFISH_GIT_SHOW
when my pull request is accepted #155