fisher/functions/fish_config.fish
Jorge Bucaran 6c5cac3a18
Ahoy! Fisherman 1.4.0 has shipped.
Notable changes:

+ Now fisher list does not show plugins that are disabled,
  but available in the cache. To preview these items use
  fisher list --disabled.

+ Welcome aboard @orangecms and @xrain0610.

+ Fisherman is now available in AUR, thanks @orangecms.

+ Fix load order during installation. Now snippets can
  safely invoke functions defined in the plugin function
  directory. Thanks @orangecms. #170.

+ Fisherman **installs and updates plugins ⌁concurrently**.
  Performance may vary, but if you can see 5 to 10 times
  faster network times, it's working well.
2016-03-31 02:42:44 +09:00

25 lines
769 B
Fish

function fish_config -d "Launch fish's web based configuration" -a tab
set -l config ~/.config
if set -q XDG_CONFIG_HOME
set config $XDG_CONFIG_HOME
end
set -l file $config/fish/functions/fish_prompt.fish
set -l sum_before (cksum $file ^ /dev/null | awk '{ print $1 + $2 }')
eval $__fish_datadir/tools/web_config/webconfig.py $tab
if test ! -z "$fisher_prompt"
set -l sum_after (cksum $file ^ /dev/null | awk '{ print $1 + $2 }')
debug "fish_prompt check sum before: %s" $sum_before
debug "fish_prompt check sum after: %s" $sum_after
if test "$sum_before" != "$sum_after"
debug "uninstall %s" "$fisher_prompt"
fisher_uninstall "$fisher_prompt" -q
end
end
end