diff --git a/README.md b/README.md index 741cd35..7602964 100644 --- a/README.md +++ b/README.md @@ -6,35 +6,39 @@ 1. Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew - ```bash - xcode-select --install - ``` +```bash +xcode-select --install +``` 2. Clone repo into new hidden directory - ```bash - git clone https://github.com/boltlessengineer/dotfiles ~/.dotfiles - ``` +```bash +git clone https://github.com/boltlessengineer/dotfiles ~/.dotfiles +``` 3. Create symlinks in the $HOME directory to the real files in the repo - ```bash - # install neovim config - ln -shf ./nvim ~/.config/nvim +```bash +# install neovim config +ln -shf ./nvim ~/.config/nvim - # install fish config - ln -shf ./fish ~/.config/fish +# install fish config +ln -shf ./fish ~/.config/fish - # install lf config - ln -shf ./lf ~/.config/lf +# install lf config +ln -shf ./lf ~/.config/lf - # install wezterm config - ln -shf ./wezterm ~/.config/wezterm - ``` +# install wezterm config +ln -shf ./wezterm ~/.config/wezterm +tempfile=(mktemp) \ + && curl -o $tempfile https://raw.githubusercontent.com/wez/wezterm/master/termwiz/data/wezterm.terminfo \ + && tic -x -o ~/.terminfo $tempfile \ + && rm $tempfile +``` - > NOTE: - > `ln -shf` is OSX specific command. - > `ln -sf` is fine for Linux. +> NOTE: +> `ln -shf` is OSX specific command. +> `ln -sf` is fine for Linux. ### install fish diff --git a/fish/config.fish b/fish/config.fish index 81f0fa8..2b1dcad 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -15,6 +15,11 @@ if status is-interactive set -gx EDITOR nvim + # set $TERM as wezterm to support undercurl in neovim (see wezterm#2505) + if test "$TERM_PROGRAM" = "WezTerm" + set -gx TERM wezterm + end + ## Go set -gx GOROOT "$(brew --prefix golang)/libexec" set -gx GOPATH $HOME/go