mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Make main behave like master branch
This commit is contained in:
parent
df1333899d
commit
6e3ef61aa9
@ -108,6 +108,11 @@ set -g theme_project_dir_length 1
|
||||
set -g theme_newline_cursor yes
|
||||
set -g theme_newline_prompt '$ '
|
||||
```
|
||||
**GIT options**
|
||||
|
||||
Note that `master` and `main` now behave in the same way i.e. they
|
||||
are hidden/collapsed by default. Set the `theme_display_git_master_branch`
|
||||
override to `yes` (see above) to see these branches.
|
||||
|
||||
**Title options**
|
||||
|
||||
|
@ -78,7 +78,7 @@ end
|
||||
function __bobthefish_git_branch -S -d 'Get the current git branch (or commitish)'
|
||||
set -l ref (command git symbolic-ref HEAD 2>/dev/null)
|
||||
and begin
|
||||
[ "$theme_display_git_master_branch" != 'yes' -a "$ref" = 'refs/heads/master' ]
|
||||
[ "$theme_display_git_master_branch" != 'yes' -a \( "$ref" = 'refs/heads/master' -o "$ref" = 'refs/heads/main' \) ]
|
||||
and echo $branch_glyph
|
||||
and return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user