mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-17 04:00:22 +03:00
Add _tide_fish_colorize
This commit is contained in:
parent
d9861ae730
commit
7c06ae523a
@ -11,7 +11,7 @@ function _tide_init_install --on-event _tide_init_install
|
|||||||
if contains ilancosman/tide (string lower $_fisher_plugins)
|
if contains ilancosman/tide (string lower $_fisher_plugins)
|
||||||
set_color bryellow
|
set_color bryellow
|
||||||
echo "ilancosman/tide is a development branch. Please install from a release tag:"
|
echo "ilancosman/tide is a development branch. Please install from a release tag:"
|
||||||
echo -ns "fisher install ilancosman/tide@v5" | fish_indent --ansi
|
_tide_fish_colorize "fisher install ilancosman/tide@v5"
|
||||||
sleep 3
|
sleep 3
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ function _tide_init_install --on-event _tide_init_install
|
|||||||
case y ye yes ''
|
case y ye yes ''
|
||||||
tide configure
|
tide configure
|
||||||
case '*'
|
case '*'
|
||||||
echo -s \n 'Run ' (echo -ns "tide configure" | fish_indent --ansi) ' to customize your prompt.'
|
echo -s \n 'Run ' (_tide_fish_colorize "tide configure") ' to customize your prompt.'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -29,7 +29,7 @@ function _tide_init_update --on-event _tide_init_update
|
|||||||
if contains ilancosman/tide (string lower $_fisher_plugins)
|
if contains ilancosman/tide (string lower $_fisher_plugins)
|
||||||
set_color bryellow
|
set_color bryellow
|
||||||
echo "ilancosman/tide is a development branch. Please install from a release tag:"
|
echo "ilancosman/tide is a development branch. Please install from a release tag:"
|
||||||
echo -ns "fisher install ilancosman/tide@v5" | fish_indent --ansi
|
_tide_fish_colorize "fisher install ilancosman/tide@v5"
|
||||||
sleep 3
|
sleep 3
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
7
functions/_tide_fish_colorize.fish
Normal file
7
functions/_tide_fish_colorize.fish
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
function _tide_fish_colorize
|
||||||
|
if command -q fish_indent
|
||||||
|
echo -ns "$argv" | fish_indent --ansi
|
||||||
|
else
|
||||||
|
echo -ns "$argv"
|
||||||
|
end
|
||||||
|
end
|
@ -42,9 +42,5 @@ function _tide_finish
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _tide_print_configure_current_options
|
function _tide_print_configure_current_options
|
||||||
if command -q fish_indent
|
_tide_fish_colorize "tide configure --auto $_tide_configure_current_options"
|
||||||
printf %s\n "tide configure --auto $_tide_configure_current_options" | fish_indent --ansi
|
|
||||||
else
|
|
||||||
printf %s\n "tide configure --auto $_tide_configure_current_options"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user