Files
config-bootstrap/config.d/screen.bash
Xavier Logerais e42dcfd45f feat(config): Improve config script for screen
To follow the approach used for the tmux config script.
2025-10-29 23:21:09 +01:00

13 lines
363 B
Bash

#!/bin/bash
git_repo="https://gitea.cloud.logerais.com/xavier/config-screen.git"
git_branch="master"
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/screen
if [[ ! -d "${config_dir}" ]]; then
git clone "${git_repo}" --branch "${git_branch}" --recursive "${config_dir}"
else
cd "${config_dir}" && git pull
fi
ln -sf "${config_dir}/screenrc" "${HOME}/.screenrc"