From 8f3fcc60226297735c4c581078a6e10fa7499379 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 17 Feb 2024 21:01:36 +0100 Subject: [PATCH] hide deprecation warnings in chezmoiapply --- .../fish/private_functions/chezmoiapply.fish | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dot_config/fish/private_functions/chezmoiapply.fish b/dot_config/fish/private_functions/chezmoiapply.fish index 779afac..55d5031 100644 --- a/dot_config/fish/private_functions/chezmoiapply.fish +++ b/dot_config/fish/private_functions/chezmoiapply.fish @@ -1,9 +1,11 @@ function chezmoiapply -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 -chezmoi apply + set -x NODE_OPTIONS "--no-deprecation" + + 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 + chezmoi apply end