- Clone the repo. Setup SSH access to GitHub or use HTTPS repo path.
git clone git@github.com:santhoshsram/dotfiles.git ~/dotfiles
- Install GNU Stow
brew install stow
- Set up symlinks using stow
cd ~/dotfiles
stow bash git vim nvim ghostty tmux screen ssh
Note: ~/.ssh/ must exist before stowing ssh (mkdir -p ~/.ssh && chmod 700 ~/.ssh).
- Install vim plugins using native package management (Vim 8+).
mkdir -p ~/.vim/pack/plugins/start
cd ~/.vim/pack/plugins/start
git clone https://github.com/catppuccin/vim.git catppuccin
git clone https://github.com/itchyny/lightline.vim.git
git clone https://github.com/tpope/vim-fugitive.git
-
Update
~/dotfiles/ssh/.ssh/configwith the right github username and identity file. -
Bash history search using fzf
# First install bash via homebrew. Default macOS bash is very old.
brew install bash
# Add new bash to allowed shells
sudo sh -c 'echo "$(brew --prefix)/bin/bash" >> /etc/shells'
# Change default shell to new bash
chsh -s "$(brew --prefix)/bin/bash"
# Install fzf
brew install fzf
# Install fzf keybindings and autocomplete
$(brew --prefix)/opt/fzf/install