From 0c5ecf644564d029684af7613a89d23163a9eab2 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Wed, 3 Feb 2021 12:57:13 -0800 Subject: [PATCH] Add bug-report --clean --- functions/_tide_sub_bug-report.fish | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/functions/_tide_sub_bug-report.fish b/functions/_tide_sub_bug-report.fish index d94f8b7..887c3ab 100644 --- a/functions/_tide_sub_bug-report.fish +++ b/functions/_tide_sub_bug-report.fish @@ -1,14 +1,17 @@ function _tide_sub_bug-report - argparse 'v/verbose' -- $argv + argparse 'c/clean' 'v/verbose' -- $argv - fish --version - tide --version - printf '%s\n' $TERM - - if set -q _flag_verbose - printf '%s\n' + if set -q _flag_clean + HOME=(mktemp -d) fish --init-command "curl --silent \ + https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | + source && fisher install ilancosman/tide" + else if set -q _flag_verbose for var in $_tide_var_list printf '%s\n' "$var $$var" end + else + fish --version + tide --version + printf '%s\n' $TERM end end \ No newline at end of file