this repository contains my personal dotfiles and setup script for macos.
- install
xcode-select --install- a window will pop up asking if you want to install the command line developer tools
- click install
- this will give you
git
- clone the repository:
git clone https://git.sr.ht/~obk/.dotfiles
- navigate to the directory:
cd .dotfiles - run the installation script:
./install.sh
the install.sh script handles the following tasks:
- replace
.zshrc: backs up your existing configuration and symlinks the repository's.zshrcto~/.zshrc. - link configs: symlinks all directories found in
.configto~/.configto avoid conflicts. - install homebrew: checks if homebrew is installed; if not, it installs it (supporting both arm and intel macs).
- bundle packages: checks for a
brewfileand prompts to install packages viabrew bundle. - system defaults: checks for the
.macosscript and prompts to apply system-wide preferences.
the included .macos script modifies system defaults to improve usability and speed. it requires sudo permissions at the start to update system settings.
key changes:
- finder:
- shows all hidden files and file extensions.
- sets the default search scope to the current folder.
- defaults to list view.
- shows the full path bar.
- dock:
- removes all persistent app icons (starts fresh).
- hides recent applications.
- sets icon size to 36px.
- enables auto-hide with 0 second delay (instant animation).
- general ui/ux:
- expands save and print panels by default.
- disables "smart" features: automatic dash/quote substitution and spell correction.
- screensaver asks for a password immediately (0 delay).
- screenshots are saved to the desktop as pngs.
the shell configuration uses oh-my-posh for prompt theming.
useful aliases:
| alias | command | description |
|---|---|---|
bf |
brew update && brew upgrade... |
full homebrew maintenance: updates, upgrades, removes old deps, and cleans up. |
mu |
sudo softwareupdate -i -a |
install all available macos software updates. |
gp / gl / gcm |
git push / git pull / git commit -m |
git shortcuts. |
vi / vim |
nvim |
defaults to neovim. |
ll |
ls -l --color=auto |
list files with details and color. |
lal |
ls -a -l --color=auto |
list all files with details and color. |