bionmilliondollar.blogg.se

Fish shell git auto fetch plugin
Fish shell git auto fetch plugin










$_fish_git_prompt_showupstream can be set to a list of values to determine how changes between HEAD and upstream are shown: $_fish_git_prompt_showuntrackedfiles or the git option bash.showUntrackedFiles can be set to 1, true or yes to show if the repository has untracked files (that aren’t ignored). $_fish_git_prompt_showdirtystate or the git option bash.showDirtyState can be set to 1, true or yes to show if the repository is “dirty”, i.e. It also changes the characters the prompt uses to less plain ones ( ✚ instead of * for the dirty state for example), and if you are only interested in that, set $_fish_git_prompt_use_informative_chars instead.īecause counting untracked files requires a lot of time, the number of untracked files is only shown if enabled via $_fish_git_prompt_showuntrackedfiles or the git option bash.showUntrackedFiles. In large repositories, this can take a lot of time, so you may wish to disable it in these repositories with git config -local bash.showInformativeStatus false. $_fish_git_prompt_show_informative_status or the git option bash.showInformativeStatus can be set to 1, true or yes to enable the “informative” display, which will show a large amount of information - the number of dirty files, unpushed/unpulled commits, and more. git options can be set with the git config command, while fish variables can be set as usual with the set command.īoolean options (those which enable or disable something) understand “1”, “yes” or “true” to mean true and every other value to mean false.

fish shell git auto fetch plugin

git options can be set on a per-repository or global basis. git options, where available, take precedence over the fish variable with the same function. There are numerous customization options, which can be controlled with git options or fish variables. The fish_git_prompt function displays information about the current git repository, if any.

fish shell git auto fetch plugin

Function fish_prompt printf '%s' $PWD ( fish_git_prompt ) ' $ ' end Description ¶












Fish shell git auto fetch plugin