Add purge

This commit is contained in:
Jethro Kuan 2016-03-18 00:53:23 +08:00
parent 3748bc9c27
commit 476e2a15a7

View file

@ -0,0 +1,7 @@
function __fisher_purge
set -l FISH_CONFIG "$~/.config/fish/config.fish"
sed -E '/set ($fisher_home|$fisher_config) /d;/source \$$fisher_home/d' \
$FISH_CONFIG > $FISH_CONFIG.tmp
mv $FISH_CONFIG.tmp $FISH_CONFIG
echo "Reload your shell to apply changes."
end