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