fix(shell): set `TERM=wezterm` to support undercurl in neovim

Changed files
+28 -19
fish
+23 -19
README.md
··· 6 6 7 7 1. Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew 8 8 9 - ```bash 10 - xcode-select --install 11 - ``` 9 + ```bash 10 + xcode-select --install 11 + ``` 12 12 13 13 2. Clone repo into new hidden directory 14 14 15 - ```bash 16 - git clone https://github.com/boltlessengineer/dotfiles ~/.dotfiles 17 - ``` 15 + ```bash 16 + git clone https://github.com/boltlessengineer/dotfiles ~/.dotfiles 17 + ``` 18 18 19 19 3. Create symlinks in the $HOME directory to the real files in the repo 20 20 21 - ```bash 22 - # install neovim config 23 - ln -shf ./nvim ~/.config/nvim 21 + ```bash 22 + # install neovim config 23 + ln -shf ./nvim ~/.config/nvim 24 24 25 - # install fish config 26 - ln -shf ./fish ~/.config/fish 25 + # install fish config 26 + ln -shf ./fish ~/.config/fish 27 27 28 - # install lf config 29 - ln -shf ./lf ~/.config/lf 28 + # install lf config 29 + ln -shf ./lf ~/.config/lf 30 30 31 - # install wezterm config 32 - ln -shf ./wezterm ~/.config/wezterm 33 - ``` 31 + # install wezterm config 32 + ln -shf ./wezterm ~/.config/wezterm 33 + tempfile=(mktemp) \ 34 + && curl -o $tempfile https://raw.githubusercontent.com/wez/wezterm/master/termwiz/data/wezterm.terminfo \ 35 + && tic -x -o ~/.terminfo $tempfile \ 36 + && rm $tempfile 37 + ``` 34 38 35 - > NOTE: 36 - > `ln -shf` is OSX specific command. 37 - > `ln -sf` is fine for Linux. 39 + > NOTE: 40 + > `ln -shf` is OSX specific command. 41 + > `ln -sf` is fine for Linux. 38 42 39 43 ### install fish 40 44
+5
fish/config.fish
··· 15 15 16 16 set -gx EDITOR nvim 17 17 18 + # set $TERM as wezterm to support undercurl in neovim (see wezterm#2505) 19 + if test "$TERM_PROGRAM" = "WezTerm" 20 + set -gx TERM wezterm 21 + end 22 + 18 23 ## Go 19 24 set -gx GOROOT "$(brew --prefix golang)/libexec" 20 25 set -gx GOPATH $HOME/go