From 6193fc935c9023ea35086511e5ec99209af8aa2c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 8 Jun 2022 13:57:51 +0200 Subject: [PATCH] Add upgrade command --- dot_config/fish/private_functions/upgrade.fish | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dot_config/fish/private_functions/upgrade.fish diff --git a/dot_config/fish/private_functions/upgrade.fish b/dot_config/fish/private_functions/upgrade.fish new file mode 100644 index 0000000..77d7f65 --- /dev/null +++ b/dot_config/fish/private_functions/upgrade.fish @@ -0,0 +1,9 @@ +function upgrade --wraps=topgrade +if not bw login --check +set -x BW_SESSION (bw login --raw) +end +if not bw unlock --check +set -x BW_SESSION (bw unlock --raw) +end +topgrade +end