Files
dotfiles-new/install/install.sh
T

60 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
set -eu
#Install dep
echo '[*] Install apt requierements ...'
sudo apt -y install apt-transport-https curl gnupg stow zsh
# test if rust is installed
if ! [ -x "$(command -v cargo)" ]; then
echo 'Error: cargo is not installed.'
echo '[*] Install rust ...'
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fi
#Install Zellij
echo '[*] Install zellij'
cargo install zellij
echo '[*] Removing default configurations ...'
rm -rf ~/.config/zellij
echo '[*] Creating plugin directory'
mkdir ~/.config/zellij
echo '[*] Stowing/Creating simlinks for zellij'
cd ../dotfiles && stow -vSt ~/.config/zellij zellij && cd ../install
#Zsh Perso
echo '[*] Stowing/Creating simlinks for zellij'
cd ../dotfiles && stow -vSt ~/.zshrc.perso zshrc.perso && cd ../install
#Install Spaceship a zsh module
mkdir -p "$HOME/.zsh"
rm -rf "$HOME/.zsh/spaceship"
git clone --depth=1 https://github.com/spaceship-prompt/spaceship-prompt.git "$HOME/.zsh/spaceship"
echo '[*] Removing default configurations ...'
rm -rf ~/.config/spaceship
echo '[*] Creating plugin directory'
mkdir ~/.config/spaceship
echo '[*] Stowing/Creating simlinks for spaceship'
cd ../dotfiles && stow -vSt ~/.config/spaceship spaceship && cd ../install
##Installation de programme rust
# Rust cool stuff
echo '[*] Install bat'
cargo install bat
echo '[*] Install bottom'
cargo install bottom
echo '[*] Install diskus'
cargo install diskus
echo '[*] Install procs'
cargo install procs
echo '[*] Install cargo-update'
cargo install cargo-update