feat(config): Improve config script for screen
To follow the approach used for the tmux config script.
This commit is contained in:
		@@ -1,9 +1,12 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Configuration SCREEN
 | 
					git_repo="https://gitea.cloud.logerais.com/xavier/config-screen.git"
 | 
				
			||||||
 | 
					git_branch="master"
 | 
				
			||||||
 | 
					config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/screen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ ! -d ~/.screen ]]
 | 
					if [[ ! -d "${config_dir}" ]]; then
 | 
				
			||||||
then
 | 
					  git clone "${git_repo}" --branch "${git_branch}" --recursive "${config_dir}"
 | 
				
			||||||
    git clone --recursive https://gitea.logerais.com/xavier/config-screen.git ~/.screen
 | 
					else
 | 
				
			||||||
    bash ~/.screen/create-links.bash
 | 
					  cd "${config_dir}" && git pull
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					ln -sf "${config_dir}/screenrc" "${HOME}/.screenrc"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user