replaced `if` by `if-shell` in automatic tpm doc

This commit is contained in:
Luis Obis 2022-11-14 18:46:41 +01:00
parent b699a7e01c
commit aa99619f90
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ One of the first things we do on a new machine is cloning our dotfiles. Not ever
If you want to install `tpm` and plugins automatically when tmux is started, put the following snippet in `.tmux.conf` before the final `run '~/.tmux/plugins/tpm/tpm'`:
```
if "test ! -d ~/.tmux/plugins/tpm" \
if-shell "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
```