Fix uninstall erasing functions

This commit is contained in:
Ilan Cosman 2020-07-13 11:37:57 -07:00
parent 3648a1a2fc
commit ad9f53b5d4
2 changed files with 8 additions and 9 deletions

View File

@ -179,20 +179,20 @@ Open each file and click "Install". This will make the `Sauce Code Pro` font ava
[ci]: https://github.com/IlanCosman/tide/actions?query=workflow%3ACI
[ci_badge]: https://github.com/IlanCosman/tide/workflows/CI/badge.svg
[configuration_wizard]: /resources/svgs/Configuration_Wizard.svg
[configuration_wizard]: ./resources/svgs/Configuration_Wizard.svg
[contributing guide]: https://github.com/IlanCosman/tide/blob/master/CONTRIBUTING.md
[extensible]: /resources/images/Extensible.png
[extensible]: ./resources/images/Extensible.png
[fish]: https://github.com/fish-shell/fish-shell
[fish_git_prompt]: https://fishshell.com/docs/current/cmds/fish_git_prompt.html
[fish_version_badge]: https://img.shields.io/badge/fish-3.1.0%2B-blue
[git]: https://github.com/git/git
[license]: /LICENSE.md
[license]: ./LICENSE.md
[license_badge]: https://img.shields.io/github/license/IlanCosman/tide
[multi-line_right_prompt]: /resources/images/Multi-Line_Right_Prompt.png
[multi-line_right_prompt]: ./resources/images/Multi-Line_Right_Prompt.png
[powerlevel10k]: https://github.com/romkatv/powerlevel10k/
[prompt_connection]: /resources/images/Prompt_Connection.png
[prompt_connection]: ./resources/images/Prompt_Connection.png
[pure]: https://github.com/rafaelrinaldi/pure
[pure_compatibility]: /resources/svgs/Pure_Compatibility.svg
[pure_compatibility]: ./resources/svgs/Pure_Compatibility.svg
[releases]: https://github.com/IlanCosman/tide/releases
[release_badge]: https://img.shields.io/github/v/release/IlanCosman/tide?label=%20
[sauce code pro bold.ttf]: https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/SourceCodePro/Bold/complete/Sauce%20Code%20Pro%20Bold%20Nerd%20Font%20Complete.ttf

View File

@ -12,13 +12,12 @@ function tide_uninstall
rm -r $_tide_dir
end
set -l fishPromptFirstLine (head -n 1 $fishPrompt)
if test "$fishPromptFirstLine" = '# Created by tide configure'
if test (head --lines=1 $fishPrompt) = '# Created by tide configure'
rm $fishPrompt
source "$__fish_data_dir/functions/fish_prompt.fish"
end
for func in (cat "$__fish_config_dir/conf.d/_tide_Ω_run.fish")
for func in (basename -s '.fish' $_tide_file_list)
functions -e $func
end