Compare commits

..

2 Commits

Author SHA1 Message Date
cdc905303d feat(config): Improve config script for screen
To follow the approach used for the tmux config script.
2025-10-29 22:19:40 +01:00
09f940169f feat(config): Disable git configuration
This is now managed with [chezmoi](https://www.chezmoi.io/) in the
repository
[config-chezmoi](https://gitea.logerais.com/xavier/config-chezmoi).
2025-10-29 22:15:44 +01:00
2 changed files with 34 additions and 29 deletions

View File

@@ -2,28 +2,30 @@
# Configuration GIT
git config --global user.name "Xavier Logerais"
git config --global user.email "xavier@logerais.com"
# Now managed by chezmoi
git config --global credential.helper cache
git config --global merge.conflictstyle diff3
git config --global rerere.enabled 1
cat <<EOF >~/.gitignore
### asdf ###
.tool-versions
### mise ###
.mise.toml
### direnv ###
.direnv
.envrc
### python ###
.venv
EOF
cat <<EOF >~/.gitattributes
EOF
git config --global core.excludesfile ~/.gitignore
git config --global core.attributesfile ~/.gitattributes
# git config --global user.name "Xavier Logerais"
# git config --global user.email "xavier@logerais.com"
#
# git config --global credential.helper cache
#
# git config --global merge.conflictstyle diff3
# git config --global rerere.enabled 1
#
# cat <<EOF >~/.gitignore
# ### asdf ###
# .tool-versions
# ### mise ###
# .mise.toml
# ### direnv ###
# .direnv
# .envrc
# ### python ###
# .venv
# EOF
#
# cat <<EOF >~/.gitattributes
# EOF
#
# git config --global core.excludesfile ~/.gitignore
# git config --global core.attributesfile ~/.gitattributes

View File

@@ -1,9 +1,12 @@
#!/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 ]]
then
git clone --recursive https://gitea.logerais.com/xavier/config-screen.git ~/.screen
bash ~/.screen/create-links.bash
if [[ ! -d "${config_dir}" ]]; then
git clone "${git_repo}" --branch "${git_branch}" --recursive "${config_dir}"
bash "${config_dir}/create-links.bash"
else
cd "${config_dir}" && git pull
fi