From c22326bc85971eaf84b27feb2adb40a909a65c56 Mon Sep 17 00:00:00 2001 From: "FCD (ubersapce)" Date: Fri, 23 Oct 2020 20:11:41 +0200 Subject: [PATCH 1/2] Minor changes in bash prompt handlng. --- dot_sshrc.tmpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dot_sshrc.tmpl b/dot_sshrc.tmpl index 8ecf1b7..40e2648 100644 --- a/dot_sshrc.tmpl +++ b/dot_sshrc.tmpl @@ -13,9 +13,10 @@ fi # mySystem=$(uname -n) myFQDN="$(uname -n).$(dnsdomainname)" -myCategory={{.bash.prompt.category}} -myType={{.chezmoi.hostname}} -myPrettyName={{.chezmoi.osRelease.prettyName}} +myCategory="{{.bash.prompt.category}}" +myType="{{.chezmoi.hostname}}" +myPrettyName="{{.chezmoi.osRelease.prettyName}}" +myNum=0 # last exit code function lastExitCode { From 250d053ea9d356fe228b782ec3edd312ee790e56 Mon Sep 17 00:00:00 2001 From: Stefan Gaiselmann Date: Sat, 7 Nov 2020 15:10:17 +0100 Subject: [PATCH 2/2] Added description for aws systems. After first test of playing around. Has to be adjusted: - add a new user to keep the system accessible (first .sshrc try failed and no login was possible any more) --- README.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.adoc b/README.adoc index f9ff73c..ba13ffb 100644 --- a/README.adoc +++ b/README.adoc @@ -15,3 +15,21 @@ Test with `centos7-01`: . apply it with `./chezmoi apply` After that a `bin` directory will exist (if not yet present before), move the executable to this dir to have it `PATH`. + +=== AWS Systeme (Draft) + +TODO: create user file for initialization at provisioning + +. install go `sudo yum install golang golang-bin` +. install _chezmoi_ from git repo (see below) +. check GOPATH and adjust if necessary +. initialize with `chezmoi init https://gitea.sdroid.uber.space/heavy/dotfiles.git` (Use 'heavy' as user). +. check what will happen with `chezmoi diff` +. apply it with `chezmoi apply` + +.chezmoi installation +[source,console] +cd $(mktemp -d) +git clone --depth=1 https://github.com/twpayne/chezmoi.git +cd chezmoi +go install \ No newline at end of file