Clean up theme_vcs_ignore_paths implementation.

- realpath isn't necessary for $PWD
- match subdirectories of all ignore paths (otherwise the vcs segment is missing for the directory itself, but shows in subdirectories, which is weird)
- check whether $theme_vsc_ignore_paths is set to save a command substitution
This commit is contained in:
Justin Hileman
2017-12-19 06:52:08 -08:00
parent 2673d2c39d
commit 162062b3ac
2 changed files with 15 additions and 8 deletions

View File

@@ -171,7 +171,7 @@ variables to set the colors of the prompt. See the "Colors" section of
**VCS options**
- `set -g theme_vcs_ignore_paths /some/path/* /some/other/path`. Tells bobthefish to ignore paths for Git or Mercurial. Supports glob patterns.
- `set -g theme_vcs_ignore_paths /some/path /some/other/path{foo,bar}`. Ignore project paths for Git or Mercurial. Supports glob patterns.
### Overrides