From 7d30a521147a10ab4b321112f5e182e856f1f42f Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 8 Jun 2023 11:44:48 -0400 Subject: [PATCH] set up work-related stuff --- home/.chezmoiignore.tmpl | 3 +++ home/dot_zshrc.tmpl | 7 +++++-- home/encrypted_dot_zshemulateenergy.age | 8 ++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 home/.chezmoiignore.tmpl create mode 100644 home/encrypted_dot_zshemulateenergy.age diff --git a/home/.chezmoiignore.tmpl b/home/.chezmoiignore.tmpl new file mode 100644 index 0000000..a5c8fd5 --- /dev/null +++ b/home/.chezmoiignore.tmpl @@ -0,0 +1,3 @@ +{{- if ne .chezmoi.os "darwin" }} +.zshemulateenergy +{{- end }} diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index ab19b6b..2bffa2b 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -2,6 +2,9 @@ srcs=( "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" "/opt/miniconda3/etc/profile.d/conda.sh" "$HOME/.cargo/env" + {{ if eq .chezmoi.os "darwin" -}} + "$HOME/.zshemulateenergy" + {{- end }} ) for fp in $srcs; do @@ -19,7 +22,7 @@ alias i="ipython3" {{ if eq .chezmoi.os "darwin" -}} alias colima_start="colima start --vm-type vz --mount-type virtiofs" -{{- end}} +{{- end }} {{- if eq .chezmoi.hostname "devterm" }} function battery() { @@ -54,4 +57,4 @@ function brightness_min { } # ttyscheme -{{- end}} +{{- end }} diff --git a/home/encrypted_dot_zshemulateenergy.age b/home/encrypted_dot_zshemulateenergy.age new file mode 100644 index 0000000..08be3ae --- /dev/null +++ b/home/encrypted_dot_zshemulateenergy.age @@ -0,0 +1,8 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBDZVRtc3ZCVmp1eEhBaDg0 +bXQrMlAwTTRQNlZrL0Vhd2QyRE9qczdhcVZNCnV0VFNqcVRtMG9tU2E5Y1F2YWpv +N2x5ZnBTSGZuTFFENXU0QVIrOTVVY1UKLS0tIHRKcEVpQ0lzOHVKYjlkd3A1c2s5 +RTJsY1BURy9VVSt3SjNtV0pEVHVNcVkKV48BhIOn3pX2eoSZLfTaeut9bOxnKzjZ +sUTEhIDOCsmNmW5vSZ2DUADBeLc6fYOm3Wq4voIuMLfQN8m9Yz5l8tIXISRgbdsD +t9Z9S0lT4oB9mnCJEDBSKzyj +-----END AGE ENCRYPTED FILE-----