Personal configuration files for macOS.
Find a file
Mikkel Svartveit 06a6f5bb86 Raycast export
2024-06-30 11:05:49 +02:00
appicons Add wallpapers and app icons 2023-04-19 16:20:25 +02:00
fish Update README 2024-01-27 08:49:42 -08:00
git Update fish and git config 2024-01-26 16:45:08 -08:00
ideavim Update config 2023-07-28 17:09:00 +02:00
iterm2-preferences Add Haleakala wallpaper ++ 2024-06-17 12:25:22 +02:00
karabiner Misc 2023-10-17 11:35:21 -07:00
nvim Add Haleakala wallpaper ++ 2024-06-17 12:25:22 +02:00
raycast-export Raycast export 2024-06-30 11:05:49 +02:00
raycast-scripts Add Raycast scripts 2023-05-14 09:03:59 +02:00
vim Update .vimrc 2023-03-21 21:38:10 +01:00
vscode-neovim Update config 2023-07-28 17:09:00 +02:00
wallpapers Add Haleakala wallpaper ++ 2024-06-17 12:25:22 +02:00
.gitignore Add IdeaVim config 2023-06-22 15:15:18 +02:00
README.md Add Haleakala wallpaper ++ 2024-06-17 12:25:22 +02:00

Configuration files for macOS

A small collection of configuration files for macOS, including:

  • iTerm2 (terminal emulator)
  • fish (shell)
  • Git
  • Neovim (complete development environment with Coc and a bunch of plugins)
  • Vim (simple configuration, no plugins)
  • IdeaVim (Vim emulation for JetBrains IDEs)
  • Karabiner (for mapping CapsLock to Ctrl and Esc)
  • Some wallpapers and custom app icons

Setup

Set up these config files

# Back up old config files (optional)
cp -r ~/.config ~/.config_old

# Set up this repository
cd ~/.config
git init
git branch -m main
git remote add origin git@github.com:mikkelsvartveit/dotfiles.git
git fetch
git reset --hard origin/main
git branch --set-upstream-to=origin/main

# Tell Vim and IdeaVim to source from the right file
echo "source ~/.config/vim/.vimrc" > .vimrc
echo "source ~/.config/ideavim/.ideavimrc" > .ideavimrc

Install software

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

# Install Homebrew packages
brew install fish pyenv git neovim ripgrep autojump

# Install pnpm and Node
curl -fsSL https://get.pnpm.io/install.sh | sh -
pnpm env use --global lts

# Install pyenv and Python
pyenv install 3.11
pyenv global 3.11

Set up fish shell, oh-my-fish and plugins

fish
fish_add_path /opt/homebrew/bin # Skip this on Intel Macs
echo $(which fish) | sudo tee -a /etc/shells
chsh -s $(which fish)
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
omf install bass
omf install https://github.com/jhillyerd/plugin-git