Skip to content

Commit

Permalink
tide configure now also resets fish_prompt to default
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed May 24, 2020
1 parent 643bce7 commit a89fa71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tide_theme/configure/choices/finish.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function finish
_title 'Overwrite tide config?'
set_color red
_title 'Overwrite tide config and fish_prompt?'
set_color normal

_option y 'Yes'
printf '%b' '\n\n'
Expand All @@ -9,7 +11,6 @@ function finish

switch (_menu 'Choice' y/n)
case y

_set_tide_defaults

if test -n "$fake_tide_time_format"
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions tide_theme/configure/functions/_set_tide_defaults.fish
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function _set_tide_defaults
# ---------------Time---------------
_set tide_time_color 5F8787
_set tide_time_format '%T'

cat "$_tide_dir/configure/fish_prompt.fish" >>"$__fish_config_dir/functions/fish_prompt.fish"
end

function _set -a var_name
Expand Down

0 comments on commit a89fa71

Please sign in to comment.