Installation messages

This commit is contained in:
Anton Volnuhin 2023-05-28 16:00:09 +03:00
parent 07e956d1dc
commit 15ba4cbaa3

View File

@ -1,12 +1,18 @@
#!/usr/bin/env bash
BASE_PACKAGES="kitty-terminfo gpg git curl wget ripgrep fd-find unzip python3-pip htop fzf bat"
USER=$(whoami)
Green='\033[0;32m' # Green
NC='\033[0m' # No Color
################################################################################################################################
##
## Install base packages
##
################################################################################################################################
echo -e "
$Green###############################################################################
## ##
## Install base packages ##
## ##
###############################################################################$NC"
sleep 3
{{ if eq .chezmoi.os "linux" -}}
{{ if eq .chezmoi.osRelease.id "fedora" -}}
@ -20,11 +26,15 @@ USER=$(whoami)
{{ end -}}
################################################################################################################################
##
## Install fish and set it as the default shell
##
################################################################################################################################
echo -e "
$Green################################################################################
## ##
## Install fish and set it as the default shell ##
## ##
################################################################################$NC"
sleep 3
{{ if eq .chezmoi.os "linux" -}}
{{ if eq .chezmoi.osRelease.id "fedora" -}}
@ -59,23 +69,27 @@ echo
echo "Changing shell to fish for user $USER"
sudo chsh -s $(which fish) $USER
echo "
echo -e "
################################################################################################################################
##
## Install nix packet manager (single user)
##
################################################################################################################################
"
$Green###############################################################################
## ##
## Install nix packet manager (single user) ##
## ##
###############################################################################$NC"
sleep 3
bash <(curl -L https://nixos.org/nix/install) --no-daemon
################################################################################################################################
##
## Install neovim
##
################################################################################################################################
echo -e "
$Green###############################################################################
## ##
## Install neovim ##
## ##
###############################################################################$NC"
sleep 3
{{ if eq .chezmoi.os "linux" -}}
{{ if eq .chezmoi.osRelease.id "fedora" -}}
@ -87,13 +101,15 @@ bash <(curl -L https://nixos.org/nix/install) --no-daemon
{{ end -}}
{{ end -}}
echo -e "
################################################################################################################################
##
## Install atuin and jump
##
################################################################################################################################
$Green###############################################################################
## ##
## Install atuin and jump ##
## ##
###############################################################################$NC"
sleep 3
{{ if eq .chezmoi.os "linux" -}}
fish -c "nix-env -iA nixpkgs.atuin"