mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Fail gracefully when hg or fossil segments are enabled but the binaries aren't available.
This commit is contained in:
parent
4e249b592f
commit
ce816e63ed
@ -197,6 +197,7 @@ end
|
|||||||
|
|
||||||
function __bobthefish_fossil_project_dir -S -a real_pwd -d 'Print the current fossil project base directory'
|
function __bobthefish_fossil_project_dir -S -a real_pwd -d 'Print the current fossil project base directory'
|
||||||
[ "$theme_display_fossil" = 'yes' ]
|
[ "$theme_display_fossil" = 'yes' ]
|
||||||
|
and command -q fossil
|
||||||
and set -f dir (command fossil json status 2>/dev/null | grep localRoot | string split ':' -f2 | string trim --chars='"/,')
|
and set -f dir (command fossil json status 2>/dev/null | grep localRoot | string split ':' -f2 | string trim --chars='"/,')
|
||||||
or return
|
or return
|
||||||
|
|
||||||
@ -209,6 +210,7 @@ end
|
|||||||
|
|
||||||
function __bobthefish_hg_project_dir -S -a real_pwd -d 'Print the current hg project base directory'
|
function __bobthefish_hg_project_dir -S -a real_pwd -d 'Print the current hg project base directory'
|
||||||
[ "$theme_display_hg" = 'yes' ]
|
[ "$theme_display_hg" = 'yes' ]
|
||||||
|
and command -q hg
|
||||||
or return
|
or return
|
||||||
|
|
||||||
set -q theme_vcs_ignore_paths
|
set -q theme_vcs_ignore_paths
|
||||||
|
Loading…
Reference in New Issue
Block a user