dotfiles
1# My dotfiles 2 3## Installation 4 5### Mac 6 71. Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew 8 9```bash 10xcode-select --install 11``` 12 132. Clone repo into new hidden directory 14 15```bash 16git clone https://github.com/boltlessengineer/dotfiles ~/.dotfiles 17``` 18 193. Create symlinks in the $HOME directory to the real files in the repo 20 21```bash 22# install neovim config 23ln -shf ./nvim ~/.config/nvim 24 25# install fish config 26ln -shf ./fish ~/.config/fish 27 28# copy tmux config 29ln -shf ./tmux.conf ~/.tmux.conf 30 31# install lf config 32ln -shf ./lf ~/.config/lf 33 34# install wezterm config 35ln -shf ./wezterm ~/.config/wezterm 36# download wezterm terminfo file (see official FAQ) 37tempfile=(mktemp) \ 38 && curl -o $tempfile https://raw.githubusercontent.com/wez/wezterm/master/termwiz/data/wezterm.terminfo \ 39 && tic -x -o ~/.terminfo $tempfile \ 40 && rm $tempfile 41``` 42 43> NOTE: 44> `ln -shf` is OSX specific command. 45> `ln -sf` is fine for Linux. 46 47### install fish 48 49```bash 50# Install fish 51brew install fish 52 53# Add fish to /etc/shells 54echo "$(where fish)" | sudo tee -a /etc/shells 55 56# Change default shell to fish 57chsh -s "$(where fish)" 58 59# Run fish with --no-config 60# Some programs should be installed first 61fish --no-config 62 63# 64 65fisher update 66``` 67 68### Install stuffs 69```bash 70# Neovim 71brew install neovim --HEAD 72 73# WezTerm 74brew tap wez/wezterm 75brew install --cask wez/wezterm/wezterm # or wez/wezterm/wezterm-nighly 76``` 77 78# TODO 79 80- [ ] Create shell script to check if local config already exists 81- [ ] Test this in new Mac 82- [ ] Add Brewfile 83- [ ] Check this tool 84 - [ ] [Schniz/fnm](https://github.com/Schniz/fnm) 85 Rust based node.js version manager