mirror of
https://github.com/shokinn/.files.git
synced 2025-06-28 15:50:41 +00:00
- Added 'ayu Light.itermcolors' and 'ayu Mirage.itermcolors' themes for iTerm2 with complete color configurations. - Created 'Alfred-Preferences.plist' for Alfred app preferences. - Added 'Moom.plist' for Moom app preferences. - Introduced 'Preferences.sublime-settings' for Sublime Text with customized settings including themes, font, and file exclusions. - Updated zshenv to dynamically set HOMEBREW_CASK_OPTS for application directory. - Removed obsolete Brewfile from the bootstrap directory.
75 lines
2.6 KiB
Markdown
75 lines
2.6 KiB
Markdown
# ShokiNNs dotfiles
|
|
|
|
I manage my dotfiles using [dotdrop](https://github.com/deadc0de6/dotdrop).
|
|
|
|
## How to install
|
|
|
|
### Script
|
|
|
|
```shell
|
|
[[ ! $(command -v brew) ]] && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \
|
|
; eval "$(/opt/homebrew/bin/brew shellenv)" \
|
|
&& brew update \
|
|
&& git clone https://github.com/shokinn/.files ~/.files \
|
|
&& brew bundle install --file=~/.files/bootstrap/Brewfile \
|
|
&& sudo sh -c "echo \"/opt/homebrew/bin/zsh\" >> /etc/shells" \
|
|
&& chsh -s /opt/homebrew/bin/zsh \
|
|
&& uv tool install --allow-python-downloads --python 3.11 dotdrop \
|
|
&& echo "Enter profile name (leave empty for default): " \
|
|
&& read DOTDROP_PROFILE \
|
|
&& [[ -n ${DOTDROP_PROFILE} ]] && DOTDROP_PROFILE="-p${DOTDROP_PROFILE}" || DOTDROP_PROFILE="" \
|
|
&& ~/.local/bin/dotdrop ${DOTDROP_PROFILE} --cfg=~/.files/config.yaml install \
|
|
; unset DOTDROP_PROFILE \
|
|
&& export HOMEBREW_CASK_OPTS="--appdir=${HOME}/Applications" \
|
|
&& brew bundle install --file=~/.files/config/brew/Brewfile \
|
|
&& mkdir -p ~/workspace/{privat,work} \
|
|
&& ${SHELL} -c ~/.files/bootstrap/.macos \
|
|
&& ${SHELL}
|
|
```
|
|
|
|
### Manual
|
|
|
|
1. Install [Homebrew](https://brew.sh/)
|
|
2. Install `coreutils`, `fzf`, `libmagic`, `mas`, `uv` and `zsh` via Homebrew.
|
|
```shell
|
|
brew bundle install --file=~/.files/bootstrap/Brewfile
|
|
```
|
|
3. Install `drotdrop` via `uv` (`uv tool install --allow-python-downloads --python 3.11 dotdrop`).
|
|
4. Clone dotfiles, install dependencies for dotdrop and install dotfiles.
|
|
```shell
|
|
git clone https://github.com/shokinn/.files ~/.files \
|
|
&& ~/.local/bin/dotdrop --cfg=~/.files/config.yaml install
|
|
```
|
|
5. Install my default set of tools:
|
|
```shell
|
|
brew bundle install --file=~/.files/config/brew/Brewfile
|
|
```
|
|
|
|
## Backup/Restore settings for macOS native user preferences
|
|
|
|
See here for a defaults documentation: <https://macos-defaults.com/>
|
|
|
|
### App list
|
|
|
|
| App | Domain |
|
|
| ------ | ------------------------------------------- |
|
|
| Alfred | `com.runningwithcrayons.Alfred-Preferences` |
|
|
| Ice | `com.jordanbaird.Ice` |
|
|
| Moom | `com.manytricks.Moom` |
|
|
|
|
### Backup settings
|
|
|
|
```shell
|
|
defaults export <domain> ~/.files/config/plist/<app>.plist
|
|
```
|
|
|
|
### Restore settings
|
|
|
|
```shell
|
|
defaults import <domain> ~/.files/config/plist/<app>.plist
|
|
```
|
|
|
|
## Documentation
|
|
|
|
~~Maybe you should [take a look to my documentation](https://docs.pphg.tech/) to understand how I use my dotfiles.~~
|
|
My documentation is currently quite outdated and should not be considered for help.
|