This commit is contained in:
Ilan Cosman 2023-10-03 21:16:59 -07:00
parent c536562f9d
commit af67746044
5 changed files with 7 additions and 6 deletions

View File

@ -588,3 +588,4 @@
[v5.5.0]: https://github.com/IlanCosman/tide/tree/v5.5.0
[v5.5.1]: https://github.com/IlanCosman/tide/tree/v5.5.1
[v5.6.0]: https://github.com/IlanCosman/tide/tree/v5.6.0
[v6.0.0]: https://github.com/IlanCosman/tide/tree/v6.0.0

View File

@ -20,7 +20,7 @@
Install with [Fisher][]:
```console
fisher install IlanCosman/tide@v5
fisher install IlanCosman/tide@v6
```
<details>
@ -30,7 +30,7 @@ This script may not work for all use cases.
```fish
set -l _tide_tmp_dir (command mktemp -d)
curl https://codeload.github.com/ilancosman/tide/tar.gz/v5 | tar -xzC $_tide_tmp_dir
curl https://codeload.github.com/ilancosman/tide/tar.gz/v6 | tar -xzC $_tide_tmp_dir
command cp -R $_tide_tmp_dir/*/{completions,conf.d,functions} $__fish_config_dir
fish_path=(status fish-path) exec $fish_path -C "emit _tide_init_install"
```

View File

@ -11,7 +11,7 @@ function _tide_init_install --on-event _tide_init_install
if contains ilancosman/tide (string lower $_fisher_plugins)
set_color bryellow
echo "ilancosman/tide is a development branch. Please install from a release tag:"
_tide_fish_colorize "fisher install ilancosman/tide@v5"
_tide_fish_colorize "fisher install ilancosman/tide@v6"
sleep 3
end
@ -29,7 +29,7 @@ function _tide_init_update --on-event _tide_init_update
if contains ilancosman/tide (string lower $_fisher_plugins)
set_color bryellow
echo "ilancosman/tide is a development branch. Please install from a release tag:"
_tide_fish_colorize "fisher install ilancosman/tide@v5"
_tide_fish_colorize "fisher install ilancosman/tide@v6"
sleep 3
end
end

View File

@ -6,7 +6,7 @@ function _tide_sub_bug-report
if set -q _flag_clean
HOME=(mktemp -d) $fish_path --init-command "curl --silent \
https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish |
source && fisher install ilancosman/tide@v5"
source && fisher install ilancosman/tide@v6"
else if set -q _flag_verbose
set --long | string match -r "^_?tide.*" | # Get only tide variables
string match -r --invert "^_tide_prompt_var.*" # Remove _tide_prompt_var

View File

@ -2,7 +2,7 @@ function tide --description 'Manage your Tide prompt'
argparse --stop-nonopt v/version h/help -- $argv
if set -q _flag_version
echo 'tide, version 5.6.0'
echo 'tide, version 6.0.0'
else if set -q _flag_help
_tide_help
else if functions --query _tide_sub_$argv[1]