Compare commits
	
		
			4 Commits
		
	
	
		
			7295fd6057
			...
			ed63fce4c0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ed63fce4c0 | |||
| 575f7c5e6f | |||
| cd86866863 | |||
| 8745971e50 | 
@@ -1,6 +1,8 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
bash os.bash
 | 
			
		||||
bash tools.bash
 | 
			
		||||
bash fonts.bash
 | 
			
		||||
bash config.bash
 | 
			
		||||
BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
			
		||||
 | 
			
		||||
bash "${BASEDIR}/os.bash"
 | 
			
		||||
bash "${BASEDIR}/tools.bash"
 | 
			
		||||
bash "${BASEDIR}/fonts.bash"
 | 
			
		||||
bash "${BASEDIR}/config.bash"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
for file in config.d/*.bash
 | 
			
		||||
do
 | 
			
		||||
  bash $file
 | 
			
		||||
done
 | 
			
		||||
BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
			
		||||
 | 
			
		||||
for file in "${BASEDIR}"/config.d/*.bash; do
 | 
			
		||||
  bash "${file}"
 | 
			
		||||
done
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,17 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Configuration NVIM
 | 
			
		||||
# Configuration for neovim
 | 
			
		||||
 | 
			
		||||
if [[ ! -d ~/.config/nvim ]]
 | 
			
		||||
then
 | 
			
		||||
    git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
 | 
			
		||||
    nvim +PackerSync
 | 
			
		||||
# git_repo="https://github.com/AstroNvim/template"
 | 
			
		||||
# git_branch="main"
 | 
			
		||||
 | 
			
		||||
git_repo="https://gitea.cloud.logerais.com/xavier/config-astronvim.git"
 | 
			
		||||
git_branch="astronvim_v4"
 | 
			
		||||
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nvim
 | 
			
		||||
 | 
			
		||||
if [[ ! -d "${config_dir}" ]]; then
 | 
			
		||||
    git clone "${git_repo}" --branch "${git_branch}" "${config_dir}"
 | 
			
		||||
    nvim --headless +q
 | 
			
		||||
else
 | 
			
		||||
    cd "${config_dir}" && git pull
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,13 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Configuration TMUX
 | 
			
		||||
# Configuration for tmux
 | 
			
		||||
 | 
			
		||||
if [[ ! -d ~/.tmux ]]
 | 
			
		||||
then
 | 
			
		||||
    git clone --recursive https://gitea.logerais.com/xavier/config-tmux.git ~/.tmux
 | 
			
		||||
    bash ~/.tmux/create-links.bash
 | 
			
		||||
git_repo="https://gitea.cloud.logerais.com/xavier/config-tmux.git"
 | 
			
		||||
git_branch="master"
 | 
			
		||||
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/tmux
 | 
			
		||||
 | 
			
		||||
if [[ ! -d "${config_dir}" ]]; then
 | 
			
		||||
  git clone "${git_repo}" --branch "${git_branch}" "${config_dir}"
 | 
			
		||||
else
 | 
			
		||||
  cd "${config_dir}" && git pull
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# FONTS
 | 
			
		||||
 | 
			
		||||
fontdir="$HOME/.local/share/fonts"
 | 
			
		||||
fontdir="${HOME}/.local/share/fonts"
 | 
			
		||||
 | 
			
		||||
declare -a fonts
 | 
			
		||||
fonts+=("Inconsolata")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								os.bash
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								os.bash
									
									
									
									
									
								
							@@ -1,5 +1,7 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
for file in os.d/*.bash; do
 | 
			
		||||
  bash $file
 | 
			
		||||
BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
			
		||||
 | 
			
		||||
for file in "${BASEDIR}"/os.d/*.bash; do
 | 
			
		||||
  bash "${file}"
 | 
			
		||||
done
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
for file in tools.d/*.bash
 | 
			
		||||
do
 | 
			
		||||
  bash $file
 | 
			
		||||
BASEDIR=$(cd "$(dirname "$0")" && pwd)
 | 
			
		||||
 | 
			
		||||
for file in "${BASEDIR}"/tools.d/*.bash; do
 | 
			
		||||
  bash "${file}"
 | 
			
		||||
done
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								tools.d/nix.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tools.d/nix.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Install nix (with the nix-installer tool from DeterminateSystems)
 | 
			
		||||
# (See https://github.com/DeterminateSystems/nix-installer)
 | 
			
		||||
 | 
			
		||||
if ( ! command -v nix &> /dev/null ); then
 | 
			
		||||
  curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Install home-manager
 | 
			
		||||
if (command -v nix-channel && command -v nix-shell &> /dev/null ); then
 | 
			
		||||
  nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
 | 
			
		||||
  nix-channel --update
 | 
			
		||||
  nix-shell '<home-manager>' -A install
 | 
			
		||||
fi
 | 
			
		||||
		Reference in New Issue
	
	Block a user