feat: improve tmux configuration management

This commit is contained in:
Xavier Logerais 2025-01-25 18:44:01 +01:00
parent 7295fd6057
commit 8745971e50

View File

@ -1,9 +1,13 @@
#!/bin/bash #!/bin/bash
# Configuration TMUX # Configuration for tmux
if [[ ! -d ~/.tmux ]] git_repo="https://gitea.cloud.logerais.com/xavier/config-tmux.git"
then git_branch="master"
git clone --recursive https://gitea.logerais.com/xavier/config-tmux.git ~/.tmux config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/tmux
bash ~/.tmux/create-links.bash
if [[ ! -d "${config_dir}" ]]; then
git clone "${git_repo}" --branch "${git_branch}" "${config_dir}"
else
cd "${config_dir}" && git pull
fi fi