Compare commits
8 Commits
7295fd6057
...
switch_to_
Author | SHA1 | Date | |
---|---|---|---|
223555c852 | |||
3aeb0650c4 | |||
10015173f9 | |||
6462e4ce57 | |||
ed63fce4c0 | |||
575f7c5e6f | |||
cd86866863 | |||
8745971e50 |
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
bash os.bash
|
BASEDIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
bash tools.bash
|
|
||||||
bash fonts.bash
|
bash "${BASEDIR}/os.bash"
|
||||||
bash config.bash
|
bash "${BASEDIR}/tools.bash"
|
||||||
|
bash "${BASEDIR}/fonts.bash"
|
||||||
|
bash "${BASEDIR}/config.bash"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for file in config.d/*.bash
|
BASEDIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
do
|
|
||||||
bash $file
|
|
||||||
done
|
|
||||||
|
|
||||||
|
for file in "${BASEDIR}"/config.d/*.bash; do
|
||||||
|
bash "${file}"
|
||||||
|
done
|
||||||
|
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,10 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Configuration NVIM
|
# Configuration for neovim
|
||||||
|
|
||||||
if [[ ! -d ~/.config/nvim ]]
|
# git_repo="https://github.com/AstroNvim/template"
|
||||||
then
|
# git_branch="main"
|
||||||
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
|
|
||||||
nvim +PackerSync
|
git_repo="https://gitea.cloud.logerais.com/xavier/config-astronvim.git"
|
||||||
|
git_branch="main"
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Configuration TMUX
|
# Configuration for tmux
|
||||||
|
|
||||||
if [[ ! -d ~/.tmux ]]
|
git_repo="https://gitea.cloud.logerais.com/xavier/config-tmux.git"
|
||||||
then
|
git_branch="master"
|
||||||
git clone --recursive https://gitea.logerais.com/xavier/config-tmux.git ~/.tmux
|
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/tmux
|
||||||
bash ~/.tmux/create-links.bash
|
|
||||||
|
if [[ ! -d "${config_dir}" ]]; then
|
||||||
|
git clone "${git_repo}" --branch "${git_branch}" "${config_dir}"
|
||||||
|
else
|
||||||
|
cd "${config_dir}" && git pull
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# FONTS
|
# FONTS
|
||||||
|
|
||||||
fontdir="$HOME/.local/share/fonts"
|
fontdir="${HOME}/.local/share/fonts"
|
||||||
|
|
||||||
declare -a fonts
|
declare -a fonts
|
||||||
fonts+=("Inconsolata")
|
fonts+=("Inconsolata")
|
||||||
|
15
optional.d/nix.bash
Normal file
15
optional.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
|
6
os.bash
6
os.bash
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for file in os.d/*.bash; do
|
BASEDIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
bash $file
|
|
||||||
|
for file in "${BASEDIR}"/os.d/*.bash; do
|
||||||
|
bash "${file}"
|
||||||
done
|
done
|
||||||
|
@ -4,7 +4,7 @@ if (grep -q Ubuntu <(lsb_release -i)); 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
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for file in tools.d/*.bash
|
BASEDIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
do
|
|
||||||
bash $file
|
for file in "${BASEDIR}"/tools.d/*.bash; do
|
||||||
|
bash "${file}"
|
||||||
done
|
done
|
||||||
|
@ -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)"
|
||||||
mise settings set experimental true
|
|
||||||
# Install some plugins
|
# Configure mise
|
||||||
(mise where usage &>/dev/null) || mise use -g usage # for completion
|
#
|
||||||
# mise use -g cargo:ubi # to install binaries from Github release
|
mise settings set experimental true
|
||||||
fi
|
|
||||||
|
# Install some essential tools
|
||||||
|
(mise where usage &>/dev/null) || mise use -g usage # for completion
|
||||||
|
(mise where chezmoi &>/dev/null) || mise use -g chezmoi # to manage dotfiles
|
||||||
|
Reference in New Issue
Block a user