Compare commits
	
		
			10 Commits
		
	
	
		
			6462e4ce57
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2fe183e757 | |||
| e42dcfd45f | |||
| 09f940169f | |||
| f4272d1340 | |||
| 0e2e334e11 | |||
| f25b56aaf1 | |||
| c5e69a9be3 | |||
| 223555c852 | |||
| 3aeb0650c4 | |||
| 10015173f9 | 
							
								
								
									
										15
									
								
								config.d/chezmoi.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								config.d/chezmoi.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Configuration for chezmoi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# git_repo="https://github.com/AstroNvim/template"
 | 
				
			||||||
 | 
					# git_branch="main"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					git_repo="https://gitea.cloud.logerais.com/xavier/config-chezmoi.git"
 | 
				
			||||||
 | 
					git_branch="main"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (command -v chezmoi); then
 | 
				
			||||||
 | 
					    chezmoi init https://gitea.cloud.logerais.com/xavier/config-chezmoi.git
 | 
				
			||||||
 | 
					    chezmoi apply ~/.config/mise
 | 
				
			||||||
 | 
					    mise install
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
@@ -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
 | 
					else
 | 
				
			||||||
    bash ~/.screen/create-links.bash
 | 
					  cd "${config_dir}" && git pull
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					ln -sf "${config_dir}/screenrc" "${HOME}/.screenrc"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,16 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (grep -q Ubuntu <(lsb_release -i)); then
 | 
					if (grep -q Ubuntu <(lsb_release --id --short)); then
 | 
				
			||||||
    sudo apt update
 | 
					    sudo apt update
 | 
				
			||||||
    sudo apt upgrade -y
 | 
					    sudo apt upgrade -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    sudo apt install -y coreutils grep less tar tree
 | 
					    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 man manpages-fr
 | 
				
			||||||
    sudo apt install -y bash zsh fish
 | 
					    sudo apt install -y bash bash-completion
 | 
				
			||||||
 | 
					    sudo apt install -y zsh fish
 | 
				
			||||||
    sudo apt install -y screen tmux
 | 
					    sudo apt install -y screen tmux
 | 
				
			||||||
    sudo apt install -y openssh mosh
 | 
					    sudo apt install -y git #tig
 | 
				
			||||||
    sudo apt install -y vim git #tig
 | 
					    sudo apt install -y vim
 | 
				
			||||||
 | 
					    sudo apt install -y openssh-server openssh-client mosh
 | 
				
			||||||
    sudo apt install -y wget curl lftp fping mtr socat
 | 
					    sudo apt install -y wget curl lftp fping mtr socat
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,17 +2,21 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# mise-en-place (https://mise.jdx.dev/)
 | 
					# mise-en-place (https://mise.jdx.dev/)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install
 | 
					# Install mise
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (! command -v mise &>/dev/null); then
 | 
					if (! command -v mise &>/dev/null); then
 | 
				
			||||||
	curl https://mise.run | sh
 | 
						curl https://mise.run | sh
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (command -v mise &>/dev/null); then
 | 
					# Activate mise
 | 
				
			||||||
	# Activate
 | 
					
 | 
				
			||||||
	eval "$(mise activate bash)"
 | 
					test -x ~/.local/bin/mise && eval "$(~/.local/bin/mise activate bash)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Configure mise
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
mise settings set experimental true
 | 
					mise settings set experimental true
 | 
				
			||||||
	# Install some plugins
 | 
					
 | 
				
			||||||
	(mise where usage &>/dev/null) || mise use -g usage # for completion
 | 
					# Install some essential tools
 | 
				
			||||||
	# mise use -g cargo:ubi # to install binaries from Github release
 | 
					(mise where usage &>/dev/null) || mise use -g usage               # for help completion
 | 
				
			||||||
fi
 | 
					(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