feat: improve tmux configuration management
This commit is contained in:
parent
7295fd6057
commit
8745971e50
@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Configuration TMUX
|
||||
# Configuration for tmux
|
||||
|
||||
if [[ ! -d ~/.tmux ]]
|
||||
then
|
||||
git clone --recursive https://gitea.logerais.com/xavier/config-tmux.git ~/.tmux
|
||||
bash ~/.tmux/create-links.bash
|
||||
git_repo="https://gitea.cloud.logerais.com/xavier/config-tmux.git"
|
||||
git_branch="master"
|
||||
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/tmux
|
||||
|
||||
if [[ ! -d "${config_dir}" ]]; then
|
||||
git clone "${git_repo}" --branch "${git_branch}" "${config_dir}"
|
||||
else
|
||||
cd "${config_dir}" && git pull
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user