Compare commits
	
		
			5 Commits
		
	
	
		
			6462e4ce57
			...
			f25b56aaf1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 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
 | 
				
			||||||
@@ -1,14 +1,15 @@
 | 
				
			|||||||
#!/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 manpages-fr-extra
 | 
				
			||||||
    sudo apt install -y bash zsh fish
 | 
					    sudo apt install -y bash 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,20 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# 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
 | 
					
 | 
				
			||||||
 | 
					# 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 completion
 | 
				
			||||||
	# mise use -g cargo:ubi # to install binaries from Github release
 | 
					(mise where chezmoi &>/dev/null) || mise use -g chezmoi # to manage dotfiles
 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user