mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
[bobthefish] Default hg segment to off
… due to performance concerns. See #258 See #262
This commit is contained in:
parent
2a2532b752
commit
e766f6c003
@ -13,7 +13,7 @@
|
|||||||
# You can override some default options in your config.fish:
|
# You can override some default options in your config.fish:
|
||||||
#
|
#
|
||||||
# set -g theme_display_git no
|
# set -g theme_display_git no
|
||||||
# set -g theme_display_hg no
|
# set -g theme_display_hg yes
|
||||||
# set -g theme_display_virtualenv no
|
# set -g theme_display_virtualenv no
|
||||||
# set -g theme_display_ruby no
|
# set -g theme_display_ruby no
|
||||||
# set -g theme_display_user yes
|
# set -g theme_display_user yes
|
||||||
@ -104,7 +104,7 @@ function __bobthefish_git_project_dir -d 'Print the current git project base dir
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __bobthefish_hg_project_dir -d 'Print the current hg project base directory'
|
function __bobthefish_hg_project_dir -d 'Print the current hg project base directory'
|
||||||
[ "$theme_display_hg" = 'no' ]; and return
|
[ "$theme_display_hg" = 'yes' ]; or return
|
||||||
set d (pwd)
|
set d (pwd)
|
||||||
while not [ $d = / ]
|
while not [ $d = / ]
|
||||||
if [ -e $d/.hg ]
|
if [ -e $d/.hg ]
|
||||||
|
Loading…
Reference in New Issue
Block a user