feat: improve tmux configuration management
This commit is contained in:
parent
7295fd6057
commit
8745971e50
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user