Compare commits
2 Commits
f4272d1340
...
cdc905303d
| Author | SHA1 | Date | |
|---|---|---|---|
| cdc905303d | |||
| 09f940169f |
@@ -2,28 +2,30 @@
|
|||||||
|
|
||||||
# Configuration GIT
|
# Configuration GIT
|
||||||
|
|
||||||
git config --global user.name "Xavier Logerais"
|
# Now managed by chezmoi
|
||||||
git config --global user.email "xavier@logerais.com"
|
|
||||||
|
|
||||||
git config --global credential.helper cache
|
# git config --global user.name "Xavier Logerais"
|
||||||
|
# git config --global user.email "xavier@logerais.com"
|
||||||
git config --global merge.conflictstyle diff3
|
#
|
||||||
git config --global rerere.enabled 1
|
# git config --global credential.helper cache
|
||||||
|
#
|
||||||
cat <<EOF >~/.gitignore
|
# git config --global merge.conflictstyle diff3
|
||||||
### asdf ###
|
# git config --global rerere.enabled 1
|
||||||
.tool-versions
|
#
|
||||||
### mise ###
|
# cat <<EOF >~/.gitignore
|
||||||
.mise.toml
|
# ### asdf ###
|
||||||
### direnv ###
|
# .tool-versions
|
||||||
.direnv
|
# ### mise ###
|
||||||
.envrc
|
# .mise.toml
|
||||||
### python ###
|
# ### direnv ###
|
||||||
.venv
|
# .direnv
|
||||||
EOF
|
# .envrc
|
||||||
|
# ### python ###
|
||||||
cat <<EOF >~/.gitattributes
|
# .venv
|
||||||
EOF
|
# EOF
|
||||||
|
#
|
||||||
git config --global core.excludesfile ~/.gitignore
|
# cat <<EOF >~/.gitattributes
|
||||||
git config --global core.attributesfile ~/.gitattributes
|
# EOF
|
||||||
|
#
|
||||||
|
# git config --global core.excludesfile ~/.gitignore
|
||||||
|
# git config --global core.attributesfile ~/.gitattributes
|
||||||
|
|||||||
@@ -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
|
bash "${config_dir}/create-links.bash"
|
||||||
bash ~/.screen/create-links.bash
|
else
|
||||||
|
cd "${config_dir}" && git pull
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user