From 6f1f912ac5066ec1afbc89e9b11d48a9382a3b10 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 29 Jan 2023 17:56:00 -0700 Subject: [PATCH] detail setting debian hostname --- README.md | 8 +++++++- home/run_once_install-packages.sh.tmpl | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2e5e1c0..8e1046d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # dotfiles +on debian machines, first set the fqdn: + ```bash -chezmoi init ssh://git@pingo.thermokar.st/dotfiles --apply --guess-repo-url=false +sudo hostnamectl set-hostname $MY_HOSTNAME.local +``` + +```bash +sh -c "$(curl -fsLS get.chezmoi.io)" -- init ssh://git@pingo.thermokar.st/dotfiles --apply --guess-repo-url=false ``` diff --git a/home/run_once_install-packages.sh.tmpl b/home/run_once_install-packages.sh.tmpl index d12e3ee..86c779a 100644 --- a/home/run_once_install-packages.sh.tmpl +++ b/home/run_once_install-packages.sh.tmpl @@ -1,4 +1,4 @@ -{{- if eq .chezmoi.hostname "devterm" }} +{{ if eq .chezmoi.hostname "devterm" -}} #!/bin/sh sudo apt install \ ripgrep \ @@ -10,4 +10,4 @@ sudo apt install \ tree \ libssl-dev \ git -{{- end }} +{{ end }}