mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-22 22:48:05 +01:00
Compare commits
4 commits
aed1729be5
...
e5bf69149d
Author | SHA1 | Date | |
---|---|---|---|
e5bf69149d | |||
0342ab1ed7 | |||
6b992478fc | |||
f5c2ea0a9e |
6 changed files with 40 additions and 51 deletions
|
@ -1,3 +1,10 @@
|
||||||
function bwunlock
|
function bwunlock
|
||||||
set -g BW_SESSION (bw login --raw)
|
set -x NODE_OPTIONS "--no-deprecation"
|
||||||
|
|
||||||
|
if not bw login --check
|
||||||
|
set -gx BW_SESSION (bw login --raw)
|
||||||
|
end
|
||||||
|
if not bw unlock --check
|
||||||
|
set -gx BW_SESSION (bw unlock --raw)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
function chezmoiapply
|
function chezmoiapply
|
||||||
set -x NODE_OPTIONS "--no-deprecation"
|
set -x NODE_OPTIONS "--no-deprecation"
|
||||||
|
bwunlock
|
||||||
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
|
chezmoi apply
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
function chezmoiupdate
|
function chezmoiupdate
|
||||||
set -x NODE_OPTIONS "--no-deprecation"
|
set -x NODE_OPTIONS "--no-deprecation"
|
||||||
if not bw login --check
|
bwunlock
|
||||||
set -x BW_SESSION (bw login --raw)
|
|
||||||
end
|
|
||||||
if not bw unlock --check
|
|
||||||
set -x BW_SESSION (bw unlock --raw)
|
|
||||||
end
|
|
||||||
chezmoi update
|
chezmoi update
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
function fetchkeys
|
function fetchkeys
|
||||||
if not bw login --check
|
set -x NODE_OPTIONS "--no-deprecation"
|
||||||
set -x BW_SESSION (bw login --raw)
|
bwunlock
|
||||||
end
|
|
||||||
if not bw unlock --check
|
|
||||||
set -x BW_SESSION (bw unlock --raw)
|
|
||||||
end
|
|
||||||
set key_item (bw list items --search "SSH Main" | jq ".[0]" --raw-output)
|
set key_item (bw list items --search "SSH Main" | jq ".[0]" --raw-output)
|
||||||
set key_item_id (echo $key_item | jq ".id" --raw-output)
|
set key_item_id (echo $key_item | jq ".id" --raw-output)
|
||||||
set key1 (echo $key_item | jq ".attachments[0]" --raw-output)
|
set key1 (echo $key_item | jq ".attachments[0]" --raw-output)
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
function upgrade --wraps=topgrade
|
function upgrade --wraps=topgrade
|
||||||
set -x NODE_OPTIONS "--no-deprecation"
|
set -x NODE_OPTIONS "--no-deprecation"
|
||||||
if not bw login --check
|
bwunlock
|
||||||
set -x BW_SESSION (bw login --raw)
|
|
||||||
end
|
|
||||||
if not bw unlock --check
|
|
||||||
set -x BW_SESSION (bw unlock --raw)
|
|
||||||
end
|
|
||||||
{{- if get . "sudo" }}
|
{{- if get . "sudo" }}
|
||||||
sudo ls >/dev/null
|
sudo ls >/dev/null
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -8,11 +8,13 @@
|
||||||
disable = [
|
disable = [
|
||||||
"mas",
|
"mas",
|
||||||
"pip3",
|
"pip3",
|
||||||
|
"gem",
|
||||||
|
"ruby_gems",
|
||||||
{{- if eq .chezmoi.os "darwin" }}
|
{{- if eq .chezmoi.os "darwin" }}
|
||||||
"vim",
|
"vim",
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (get . "sudo") }}
|
{{- if not (get . "sudo") }}
|
||||||
"npm",
|
"node",
|
||||||
{{- end }}
|
{{- end }}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue