mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-24 12:33:34 +03:00
Use builtin functions instead of head for uninstalling fish_prompt
This commit is contained in:
parent
432cc5cce6
commit
3f2ab29d28
@ -12,8 +12,9 @@ function _tide_sub_uninstall
|
||||
rm -r $_tide_dir
|
||||
end
|
||||
|
||||
if test (head -n 1 $fishPrompt) = '# Created by tide configure'
|
||||
rm $fishPrompt
|
||||
|
||||
if test (functions --details --verbose fish_prompt)[5] = 'Created by tide configure'
|
||||
rm (functions --details fish_prompt)
|
||||
source "$__fish_data_dir/functions/fish_prompt.fish"
|
||||
end
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
# Created by tide configure
|
||||
function fish_prompt --description 'Write out the prompt'
|
||||
function fish_prompt --description 'Created by tide configure'
|
||||
set -g _tide_last_pipestatus $pipestatus
|
||||
set -g _tide_last_status $status
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user