mirror of
1
0
Fork 0

How to install in .config/

This commit is contained in:
Yoann Guillard 2021-06-13 21:34:36 +02:00 committed by GitHub
parent ed0b83a118
commit 67206940ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -35,6 +35,19 @@ $ ln -s -f /path/to/oh-my-tmux/.tmux.conf ~/.tmux.conf
$ cp /path/to/oh-my-tmux/.tmux.conf.local ~/.tmux.conf.local
```
💡 You can use .config/ directory:
```zsh
# to install
mkdir -p ~/.config/tmux
git clone https://github.com/gpakosz/.tmux.git ~/.config/tmux/oh-my-tmux
sed -i 's#\.tmux\.conf#.config/tmux/tmux.conf#g' ~/.config/tmux/oh-my-tmux/.tmux.conf
ln -s -f ~/.config/tmux/oh-my-tmux/.tmux.conf ~/.config/tmux/tmux.conf
cp ~/.config/tmux/oh-my-tmux/.tmux.conf.local ~/.config/tmux/tmux.conf.local
# then to update
cd ~/.config/tmux/oh-my-tmux/ && git reset --hard && git pull && sed -i 's#\.tmux\.conf#.config/tmux/tmux.conf#g' .tmux.conf
```
Then proceed to [customize] your `~/.tmux.conf.local` copy.
[customize]: #configuration