2022-01-18 22:03:51 +01:00
|
|
|
|
|
|
|
source ./scripts/common.sh
|
|
|
|
|
|
|
|
if [[ "$WITH_TMUX_CONFIG" == 'yes' || "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
2022-01-21 22:16:21 +01:00
|
|
|
if [[ -f "$HOME/.tmux.conf" && "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
2022-01-18 22:03:51 +01:00
|
|
|
rm -rf "$HOME/.tmux.conf"
|
|
|
|
echo '[INFO] Tmux config removed | Forced by environment variable'
|
|
|
|
fi
|
2022-01-21 22:16:21 +01:00
|
|
|
if [[ ! -f "$HOME/.tmux.conf" ]]; then
|
2022-01-18 22:03:51 +01:00
|
|
|
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
|