cleaning up hostname handling
This commit is contained in:
parent
25931051a8
commit
cb39989568
6 changed files with 36 additions and 11 deletions
|
@ -2,3 +2,11 @@ encryption = "age"
|
|||
[age]
|
||||
identity = "~/.key.txt"
|
||||
recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t"
|
||||
|
||||
{{- $hostname = .chezmoi.hostname -}}
|
||||
{{- if eq .chezmoi.os "darwin" -}}
|
||||
{{- $hostname := output "scutil" "--get" "ComputerName" | trim -}}
|
||||
{{- end -}}
|
||||
|
||||
[data]
|
||||
hostname = {{ $hostname | quote }}
|
||||
|
|
|
@ -2,7 +2,7 @@ srcs=(
|
|||
"${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
"/opt/miniconda3/etc/profile.d/conda.sh"
|
||||
"$HOME/.cargo/env"
|
||||
{{ if eq .chezmoi.os "darwin" -}}
|
||||
{{ if eq .chezmoi.hostname "rattusrattus" -}}
|
||||
"$HOME/.zshemulateenergy"
|
||||
{{- end }}
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ BASE16_SHELL="$HOME/.config/base16-shell/"
|
|||
|
||||
alias i="ipython3"
|
||||
|
||||
{{ if eq .chezmoi.os "darwin" -}}
|
||||
{{ if eq .chezmoi.hostname "rattusrattus" -}}
|
||||
alias colima_start="colima start --vm-type vz --mount-type virtiofs"
|
||||
{{- end }}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{ if eq .chezmoi.os "darwin" -}}
|
||||
{{ if eq .chezmoi.hostname "rattusrattus" -}}
|
||||
Include /Users/matthew/.colima/ssh_config
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -12,7 +12,7 @@ sudo apt install \
|
|||
wget \
|
||||
zsh \
|
||||
-y
|
||||
{{ else if eq .chezmoi.os "darwin" -}}
|
||||
{{ else if eq .chezmoi.hostname "rattusrattus" -}}
|
||||
#!/bin/sh
|
||||
sudo port install \
|
||||
colima \
|
||||
|
@ -27,7 +27,7 @@ sudo port install \
|
|||
wget \
|
||||
zellij \
|
||||
zsh
|
||||
{{ else if eq .chezmoi.hostname "DESKTOP-R0KQMF4" -}}
|
||||
{{ else if eq .chezmoi.hostname "yersiniapestis" -}}
|
||||
#!/bin/sh
|
||||
sudo apt update
|
||||
sudo apt install \
|
||||
|
@ -42,5 +42,5 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh && c
|
|||
git clone https://github.com/helix-editor/helix.git --branch 23.05 $HOME/.src/helix
|
||||
export PATH=$PATH:$HOME/.cargo/bin && cd $HOME/.src/helix && cargo install --path helix-term --locked && hx --grammar fetch && hx --grammar build
|
||||
|
||||
git clone ssh://git@pingo.thermokar.st/gwar $HOME/.src/gwar && cd $HOME/.src/gwar && cargo build --release && cp target/release/gwar ~/bin
|
||||
# git clone ssh://git@pingo.thermokar.st/gwar $HOME/.src/gwar && cd $HOME/.src/gwar && cargo build --release && cp target/release/gwar ~/bin
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue