You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
384 B
Fish
11 lines
384 B
Fish
function omf.check.fish_prompt
|
|
set -l prompt_file "fish_prompt.fish"
|
|
set -l theme (cat $OMF_CONFIG/theme)
|
|
|
|
set -l user_functions_path (omf.xdg.config_home)/fish/functions
|
|
set -l fish_prompt (readlink "$user_functions_path/$prompt_file" ^/dev/null)
|
|
|
|
not test -e "$fish_prompt"; and return 0
|
|
contains -- "$fish_prompt" {$OMF_CONFIG,$OMF_PATH}/themes/$theme/$prompt_file
|
|
end
|