User Tools

Site Tools


macos_defaults

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
macos_defaults [2022-12-31 12:13:42]
mi [Hostname]
macos_defaults [2024-07-20 14:45:40] (current)
mi [Various settings]
Line 8: Line 8:
  
 # set new hostname: # set new hostname:
-new=newname.example.lan +host=newname; dom=example.lan 
-sudo for n in ComputerName ​HostName ​LocalHostName;​ do echo "$n = $(scutil --set $n $new)"; done+for n in ComputerName LocalHostName;​ do sudo scutil --set $n $host; done 
 +sudo scutil --set HostName $host.$dom
 </​code>​ </​code>​
  
Line 41: Line 42:
 ==Various settings ==Various settings
  
-Examples ​from https://​github.com/​Integralist/​dotfiles/​blob/​cc906bd14636543e71d9c034d6507f5986a80bbd/​bootstrap.sh#​L7-L53+===Bash defaults 
 +Add to ''​~/​.profile''​ : 
 + 
 +<code bash> 
 +# Prompt color 
 +export PS1='​\[\e]2;​ \h: $PWD \a\e[32;​1m\]$PWD/​$\[\e[0m\] ' 
 +# History 
 +export HISTSIZE=2000 
 +export HISTTIMEFORMAT='​%F %T ' 
 +# Additional path for scripts 
 +PATH=/​Users/​Shared/​bin:​$PATH 
 +</​code>​ 
 + 
 +Other examples ​from https://​github.com/​Integralist/​dotfiles/​blob/​cc906bd14636543e71d9c034d6507f5986a80bbd/​bootstrap.sh#​L7-L53
  
  
/docs/dokuwiki/data/attic/macos_defaults.1672485222.txt.gz · Last modified: 2022-12-31 12:13:42 by mi