This commit is contained in:
Brian Zalewski 2024-01-02 00:41:49 +00:00
parent 87ccd4ce22
commit dde63cc16a
3 changed files with 4 additions and 6 deletions

View file

@ -117,7 +117,6 @@ gpg:
data:
host:
arch: "{{ .chezmoi.arch }}"
autoresticHealthcheckUuid: "AddInFromHealthchecksDashboard"
cloudflare:
teamsOrg: "{{ $cloudflareTeamsOrg }}"
cpu:
@ -209,7 +208,6 @@ data:
weatherZipCode: 07960
diff:
pager: delta
command: delta
args: ["--paging", "never"]
edit:
command: "code"

View file

@ -584,9 +584,9 @@ setHostname() {
if [ -d /Applications ] && [ -d /System ]; then
# Source: https://apple.stackexchange.com/questions/287760/set-the-hostname-computer-name-for-macos
logg info 'Setting macOS hostname / local hostname / computer name'
sudo scutil --set HostName '{{ .host.hostname | replace .host.domain "" | replace "." "" }}.{{ .host.domain }}' && logg success 'Changed HostName to {{ .host.hostname | replace .host.domain "" | replace "." "" }}.{{ .host.domain }}'
sudo scutil --set LocalHostName '{{ .host.hostname | replace .host.domain "" | replace "." "" }}' && logg success 'Changed LocalHostName to {{ .host.hostname | replace .host.domain "" | replace "." "" }}'
sudo scutil --set ComputerName '{{ .host.hostname | replace .host.domain "" | replace "." "" }}' && logg success 'Changed ComputerName to {{ .host.hostname | replace .host.domain "" | replace "." "" }}'
logg info 'Changing HostName to {{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}.{{ .host.domain }}' && sudo scutil --set HostName '{{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}.{{ .host.domain }}' && logg info 'Changed HostName to {{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}.{{ .host.domain }}'
logg info 'Changing LocalHostName to {{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}' && sudo scutil --set LocalHostName '{{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}' && logg info 'Changed LocalHostName to {{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}'
logg info 'Changing ComputerName to {{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}' && sudo scutil --set ComputerName '{{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}' && logg info 'Changed ComputerName to {{ .host.hostname | replace .host.domain "" | replace "." "" | replace " " "" }}'
logg info 'Flushing DNS cache'
dscacheutil -flushcache
elif [ -f /etc/passwd ]; then

View file

@ -3,7 +3,6 @@
# Standard Homebrew taps
tap "homebrew/cask-versions" # Initially added to support "visual-studio" cask
tap "homebrew/core"
tap "homebrew/bundle"
if OS.mac?
@ -27,6 +26,7 @@ brew "jq"
brew "moreutils"
brew "node"
brew "progress"
brew "python@2"
brew "python@3.11"
brew "ruby"
tap "go-task/tap"