Compare commits
	
		
			5 Commits
		
	
	
		
			f25b56aaf1
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2fe183e757 | |||
| e42dcfd45f | |||
| 09f940169f | |||
| f4272d1340 | |||
| 0e2e334e11 | 
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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}"
 | 
			
		||||
else
 | 
			
		||||
  cd "${config_dir}" && git pull
 | 
			
		||||
fi
 | 
			
		||||
ln -sf "${config_dir}/screenrc" "${HOME}/.screenrc"
 | 
			
		||||
 
 | 
			
		||||
@@ -5,8 +5,9 @@ if (grep -q Ubuntu <(lsb_release --id --short)); then
 | 
			
		||||
    sudo apt upgrade -y
 | 
			
		||||
 | 
			
		||||
    sudo apt install -y coreutils grep less tar zip unzip tree
 | 
			
		||||
    sudo apt install -y man manpages-fr manpages-fr-extra
 | 
			
		||||
    sudo apt install -y bash zsh fish
 | 
			
		||||
    sudo apt install -y man manpages-fr
 | 
			
		||||
    sudo apt install -y bash bash-completion
 | 
			
		||||
    sudo apt install -y zsh fish
 | 
			
		||||
    sudo apt install -y screen tmux
 | 
			
		||||
    sudo apt install -y git #tig
 | 
			
		||||
    sudo apt install -y vim
 | 
			
		||||
 
 | 
			
		||||
@@ -17,5 +17,6 @@ test -x ~/.local/bin/mise && eval "$(~/.local/bin/mise activate bash)"
 | 
			
		||||
mise settings set experimental true
 | 
			
		||||
 | 
			
		||||
# Install some essential tools
 | 
			
		||||
(mise where usage &>/dev/null) || mise use -g usage     # for completion
 | 
			
		||||
(mise where usage &>/dev/null) || mise use -g usage               # for help completion
 | 
			
		||||
(mise where chezmoi &>/dev/null) || mise use -g chezmoi           # to manage dotfiles
 | 
			
		||||
(mise where powerline-go &>/dev/null) || mise use -g powerline-go # for fancy prompt
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user