[TMUX] Initial tmux conf
This commit is contained in:
parent
7acf33fbb6
commit
c5d8a8501f
4 changed files with 201 additions and 1 deletions
17
scripts/tools/tmux/install.sh
Executable file
17
scripts/tools/tmux/install.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
|
||||
source ./scripts/common.sh
|
||||
|
||||
if [[ "$WITH_TMUX_CONFIG" == 'yes' || "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
||||
if [[ -d "$HOME/.tmux.conf" && "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
||||
rm -rf "$HOME/.tmux.conf"
|
||||
echo '[INFO] Tmux config removed | Forced by environment variable'
|
||||
fi
|
||||
if [[ ! -d "$HOME/.tmux.conf" ]]; then
|
||||
ln -s "$CWD/configs/tmux/tmux.conf" "$HOME/.tmux.conf"
|
||||
echo "[INFO] Tmux config linked with symbolic link : $CWD/configs/tmux/tmux.conf -> $HOME/.tmux.conf"
|
||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
echo '[INFO] Tmux plugin manager cloned'
|
||||
else
|
||||
echo '[INFO] Tmux config already linked'
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue