mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-14 02:33:58 +01:00
13 lines
323 B
Cheetah
13 lines
323 B
Cheetah
function upgrade --wraps=topgrade
|
|
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
|
|
{{ if get . "sudo" }}
|
|
sudo ls >/dev/null
|
|
{{ end }}
|
|
topgrade $argv
|
|
end
|