Skip to content

Commit

Permalink
Support themes
Browse files Browse the repository at this point in the history
Themes are new in Fish 3.4 (fish-shell/fish-shell/pull/8132).
  • Loading branch information
jorgebucaran committed Jun 6, 2022
1 parent cf4c6cc commit a53949e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/fisher.fish
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
set --local source (command mktemp -d)
set --append source_plugins $source

command mkdir -p $source/{completions,conf.d,functions}
command mkdir -p $source/{completions,conf.d,themes,functions}

$fish_path --command "
if test -e $plugin
Expand Down Expand Up @@ -140,15 +140,15 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
end

if set --query update_plugins[1] || set --query install_plugins[1]
command mkdir -p $fisher_path/{functions,conf.d,completions}
command mkdir -p $fisher_path/{functions,themes,conf.d,completions}
end

for plugin in $update_plugins $install_plugins
set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)]
set --local files $source/{functions,conf.d,completions}/*
set --local files $source/{functions,themes,conf.d,completions}/*

if set --local index (contains --index -- $plugin $install_plugins)
set --local user_files $fisher_path/{functions,conf.d,completions}/*
set --local user_files $fisher_path/{functions,themes,conf.d,completions}/*
set --local conflict_files

for file in (string replace -- $source/ $fisher_path/ $files)
Expand Down

0 comments on commit a53949e

Please sign in to comment.