Skip to content
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

"set -g theme_display_git yes" does not activate git prompt #331

Open
mkastner opened this issue Aug 3, 2022 · 1 comment
Open

"set -g theme_display_git yes" does not activate git prompt #331

mkastner opened this issue Aug 3, 2022 · 1 comment

Comments

@mkastner
Copy link

mkastner commented Aug 3, 2022

Ok, meanwhile, I've found the problem:

Assigning yes to theme_git_worktree_support somehow causes the prompt to not displaying any git information.

The workaround for the time being is to assign no to theme_git_worktree_support

I remember running into an old issue (maybe ~2018 or older), already mentioning this.

I am leaving my initial text, just for the record, in case someone else experiences the same or a similar problem.

I am wondering though, about the purpose of theme_git_worktree_support .

Initial problem description:

MacOS Monterey 12.5
Terminal: Kitty 0.25.2
fish: 3.5.1
fisher: 4.4.2
omf: 7

bobthefish: just installed via omf install bobthefish

The documentation says that this is the default git option:

set -g theme_display_git no

I guess ('cause that key ain't explained anywhere, hence the guessing) that's sort of a general key to activate anything with regards to git, is that right?

No git icons appear in my prompt. So I assigned a yes to theme_display_git, but still, when I hit a git directory, nothing happens, i.e. no branch symbol, no branch name etc. appears.

My config fish is almost identical with the default options mentioned in the readme.MD:

`
set -gx COLORTERM truecolor
set -gx EDITOR nvim

set -g theme_display_git yes # activated git, default => no
set -g theme_display_git_dirty no
set -g theme_display_git_untracked no
set -g theme_display_git_ahead_verbose yes
set -g theme_display_git_dirty_verbose yes
set -g theme_display_git_stashed_verbose yes
set -g theme_display_git_default_branch yes
set -g theme_git_default_branches master main
set -g theme_git_worktree_support yes
set -g theme_use_abbreviated_branch_name yes
set -g theme_display_vagrant yes
set -g theme_display_docker_machine no
set -g theme_display_k8s_context yes
set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_display_nix no
set -g theme_display_ruby no
set -g theme_display_node yes
set -g theme_display_user ssh
set -g theme_display_hostname ssh
set -g theme_display_vi no
set -g theme_display_date no
set -g theme_display_cmd_duration yes
set -g theme_title_display_process yes
set -g theme_title_display_path no
set -g theme_title_display_user yes
set -g theme_title_use_abbreviated_path no
set -g theme_date_format "+%a %H:%M"
set -g theme_date_timezone America/Los_Angeles
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_powerline_fonts no
set -g theme_nerd_fonts yes
set -g theme_show_exit_status yes
set -g theme_display_jobs_verbose yes
set -g default_user your_normal_user
set -g theme_color_scheme dark

set -g fish_prompt_pwd_dir_length 0
set -g theme_project_dir_length 1
set -g theme_newline_cursor yes
set -g theme_newline_prompt '$ '
`
I did pretty much everything by the book, but no git indicator whatsoever.

I've also attached screenshot of my git directory and the prompt which properly appears but without any git icons or other indicators like the branch name.

bobthefish-no-git

I have no clue what could have possibly gone wrong during installation. Any help is highly appreciated.

@tommyknows
Copy link
Contributor

Probably related to #249, have you tried disabling git worktree support by setting theme_git_worktree_support no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants