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

View file

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

View file

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