Skip to content

halafi/dotfiles

Repository files navigation

dotfiles

I use VSCODE + VIM plugin as I got tired of maintaining Neovim running properly and since I could never really got rid of doing certain things in VSCode such as debugging, jupyter notebooks, etc.

My dotfiles for karabiner (60% keyboard layout), tmux, fish and everything configurable. Setup for web development (React with TypeScript), Go, Lua and Rust on macOS Monterey.

Managed with Dotbot.

Terminal

I am mostly using VSCode terminal these days with Tmux + Fish and iTerm2 for macOS.

Dependencies

System

  1. Install brew
  2. Install fish: brew install fish
  3. Install omf and omf install z
  4. Tmux plugin manager (q+i to install plugins)
  5. Brew packages:
    • brew install asdf fish exa fzf fd bat git-delta ripgrep tmux lf yarn htop lazygit google-cloud-sdk terraform
  6. Install FiraCode font patched with icons for iTerm

Git

  1. Generate and setup ssh key if needed https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

⌨️ Keyboard

  1. install karabiner brew install karabiner-elements
  2. install goku brew install yqrashawn/goku/goku
    • softwareupdate --install-rosetta if needed for goku
  3. make sure karabiner profile is named Default
  4. run goku once to generate karabiner config

Node.js

  1. asdf plugin add nodejs
  2. asdf install nodejs 18.xx.x (latest lts)
  3. update .tool-versions by running asdf global nodejs 16.xx.x (latest lts)

Go

  1. Install Go
  2. Adjust GO fish_variables if needed

Rust / Cargo

  1. https://doc.rust-lang.org/cargo/getting-started/installation.html

Elixir

  1. asdf plugin add elixir

Python

  1. brew install pyenv

Alfred Workflows

FAQ

  1. How to fix broken asdf shims after brew update?
rm ~/.asdf/shims/*
asdf reshim

Source: asdf-vm/asdf#1103 (comment)

  1. Where to get fonts?

https://www.nerdfonts.com/font-downloads

  1. How to chagne default shell to fish?

https://stackoverflow.com/a/26321141

  1. How to setup git key signing with gpg?