An open API service indexing awesome lists of open source software.

https://github.com/ozzyczech/dotfiles

This is a collection of my personal dotfiles for configuring macOS.
https://github.com/ozzyczech/dotfiles

config configuration dotfiles mac macos shell

Last synced: about 2 months ago
JSON representation

This is a collection of my personal dotfiles for configuring macOS.

Awesome Lists containing this project

README

          

# OzzyCzech's dotfiles

Personal macOS config. Zsh, Antidote, Zed, and helpers.

## Quick start

```shell
git clone git@github.com:OzzyCzech/dotfiles.git ~/.dotfiles && cd $_ && make
```

## Prerequisites

Install [Homebrew](https://brew.sh/):

```shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

Install tools:

```shell
brew install git zsh zsh-completions antidote zed
```

- [Zsh](https://www.zsh.org/) — interactive shell
- [Zsh Completions](https://github.com/zsh-users/zsh-completions) — extra completions
- [Antidote](https://getantidote.github.io) — fast Zsh plugin manager
- [Git](https://git-scm.com/) — version control
- [Zed](https://zed.dev/) — code editor

Set Zsh as default shell:

```shell
chsh -s /bin/zsh
```

## Setup scripts

Scripts live in `setup/` (see `setup/README.md` for layout):

- **apps/** — app-specific defaults (Dock, Finder, Mail, …): run e.g. `zsh setup/apps/finder.zsh`
- **system/** — system & input (keyboard, screensaver, updates); some define functions loaded via `defaults.zsh`

Load helper functions and run one-off tweaks:

```shell
source ./setup/defaults.zsh
```

### Lock screen message

Helps recover a lost device.

```shell
set-lock-message " Roman Ožana • +420 605 783 455 • roman@ozana.cz"
set-screen-capture ~/Downloads
```

### Backup SSH keys

```shell
zip -r ~/Downloads/ssh.zip ~/.ssh
```

### Backup with backup utility

A Swift-based backup utility is included for saving your configuration files and important data. It supports backing up specified files or files listed in a JSON config, only including files and directories that exist. The utility is found in `utils/backup.swift` and is available in `~/.bin/backup` after running `make utils`.

**Usage:**

- To backup specific files or directories:
```shell
backup ...
```

- To backup paths defined in a JSON configuration:
```shell
backup -c
```

The JSON config supports lists of paths or groupings for organizing backups. Only files/directories that exist (paths with `~` are supported) will be copied into the backup output directory, retaining relative structure.

For more details and config examples, refer to comments in `utils/backup.swift`.

### Get inspired

https://dotfiles.github.io/inspiration/