mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
18 lines
597 B
Fish
18 lines
597 B
Fish
|
function __fisher_prompt_reset
|
||
|
set -U fisher_prompt
|
||
|
|
||
|
# To reset the prompt, remove any data in fisher_prompt and source any existing
|
||
|
# fish_prompt file as follows. First, look inside functions/ inside each of the
|
||
|
# given paths. If none are given, look in the user fish configuration. If none
|
||
|
# is found, source the default prompt inside __fish_datadir/functions.
|
||
|
|
||
|
set argv $argv (__fisher_xdg --config)/fish $__fish_datadir
|
||
|
|
||
|
for prompt in $argv/functions/fish_prompt.fish
|
||
|
if test -s $prompt
|
||
|
source $prompt
|
||
|
return
|
||
|
end
|
||
|
end
|
||
|
end
|