[TMUX] Install when is already installed
This commit is contained in:
parent
96ebf19a7e
commit
e6372f3f3a
1 changed files with 2 additions and 2 deletions
|
@ -2,11 +2,11 @@
|
||||||
source ./scripts/common.sh
|
source ./scripts/common.sh
|
||||||
|
|
||||||
if [[ "$WITH_TMUX_CONFIG" == 'yes' || "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
if [[ "$WITH_TMUX_CONFIG" == 'yes' || "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
||||||
if [[ -d "$HOME/.tmux.conf" && "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
if [[ -f "$HOME/.tmux.conf" && "$WITH_TMUX_CONFIG" == 'force' ]]; then
|
||||||
rm -rf "$HOME/.tmux.conf"
|
rm -rf "$HOME/.tmux.conf"
|
||||||
echo '[INFO] Tmux config removed | Forced by environment variable'
|
echo '[INFO] Tmux config removed | Forced by environment variable'
|
||||||
fi
|
fi
|
||||||
if [[ ! -d "$HOME/.tmux.conf" ]]; then
|
if [[ ! -f "$HOME/.tmux.conf" ]]; then
|
||||||
ln -s "$CWD/configs/tmux/tmux.conf" "$HOME/.tmux.conf"
|
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"
|
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
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
|
Loading…
Reference in a new issue