mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-26 19:30:38 +03:00
Simplify install
This commit is contained in:
parent
583999af3b
commit
9b3ac2558b
@ -33,16 +33,12 @@ function _tide_init_install --on-event _tide_init_install
|
|||||||
source "$__fish_config_dir/functions/fish_prompt.fish"
|
source "$__fish_config_dir/functions/fish_prompt.fish"
|
||||||
|
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
while true
|
switch (read --prompt-str="Configure tide prompt? [Y/n] " | string lower)
|
||||||
switch (read --prompt-str="Configure tide prompt? [Y/n] ")
|
case y ye yes ''
|
||||||
case y Y yes Yes ''
|
tide configure
|
||||||
tide configure
|
case n no '*'
|
||||||
case n N no No
|
printf '%s' \n 'Run ' (set_color $fish_color_command) 'tide ' \
|
||||||
printf '%s' \
|
(set_color $fish_color_param) 'configure ' (set_color normal) 'to customize your prompt.' \n
|
||||||
\n 'Run ' (set_color $fish_color_command) 'tide ' \
|
|
||||||
(set_color $fish_color_param) 'configure ' (set_color normal) 'to customize your prompt.' \n
|
|
||||||
end
|
|
||||||
break
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user