mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-05 09:32:37 +02:00
Add purge
This commit is contained in:
parent
3748bc9c27
commit
476e2a15a7
1 changed files with 7 additions and 0 deletions
7
functions/__fisher_purge.fish
Normal file
7
functions/__fisher_purge.fish
Normal 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
|
Loading…
Reference in a new issue