From e5bf69149d0b68a804ce3705217415f53263c4bc Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 18 Feb 2024 16:18:04 +0100 Subject: [PATCH] hide node warnings in bw functions --- dot_config/fish/private_functions/chezmoiapply.fish | 1 + dot_config/fish/private_functions/chezmoiupdate.fish | 1 + dot_config/fish/private_functions/private_fetchkeys.fish | 1 + dot_config/fish/private_functions/upgrade.fish.tmpl | 1 + 4 files changed, 4 insertions(+) diff --git a/dot_config/fish/private_functions/chezmoiapply.fish b/dot_config/fish/private_functions/chezmoiapply.fish index 0540509..e4ffe41 100644 --- a/dot_config/fish/private_functions/chezmoiapply.fish +++ b/dot_config/fish/private_functions/chezmoiapply.fish @@ -1,4 +1,5 @@ function chezmoiapply + set -x NODE_OPTIONS "--no-deprecation" bwunlock chezmoi apply end diff --git a/dot_config/fish/private_functions/chezmoiupdate.fish b/dot_config/fish/private_functions/chezmoiupdate.fish index d53d1ff..bc53ebd 100644 --- a/dot_config/fish/private_functions/chezmoiupdate.fish +++ b/dot_config/fish/private_functions/chezmoiupdate.fish @@ -1,4 +1,5 @@ function chezmoiupdate + set -x NODE_OPTIONS "--no-deprecation" bwunlock chezmoi update end diff --git a/dot_config/fish/private_functions/private_fetchkeys.fish b/dot_config/fish/private_functions/private_fetchkeys.fish index 2709744..c4a2614 100644 --- a/dot_config/fish/private_functions/private_fetchkeys.fish +++ b/dot_config/fish/private_functions/private_fetchkeys.fish @@ -1,4 +1,5 @@ function fetchkeys + set -x NODE_OPTIONS "--no-deprecation" bwunlock set key_item (bw list items --search "SSH Main" | jq ".[0]" --raw-output) set key_item_id (echo $key_item | jq ".id" --raw-output) diff --git a/dot_config/fish/private_functions/upgrade.fish.tmpl b/dot_config/fish/private_functions/upgrade.fish.tmpl index af92f71..8d7a0d2 100644 --- a/dot_config/fish/private_functions/upgrade.fish.tmpl +++ b/dot_config/fish/private_functions/upgrade.fish.tmpl @@ -1,4 +1,5 @@ function upgrade --wraps=topgrade + set -x NODE_OPTIONS "--no-deprecation" bwunlock {{- if get . "sudo" }} sudo ls >/dev/null