diff --git a/dotfiles/zsh/zshrc.perso b/dotfiles/zsh/zshrc.perso new file mode 100644 index 0000000..04e4fed --- /dev/null +++ b/dotfiles/zsh/zshrc.perso @@ -0,0 +1,16 @@ +eval "$(zellij setup --generate-auto-start zsh)" + +### Fonction a utiliser comme ceci udig an.ginder +udig() { + if [ "$1" != "" ] + then + dig +short TXT $1.u.perf1.net @192.168.232.10 + else + echo "Missing user - Please specify udig pr.nom" + fi +} + +#Export Perso +export SSH_AUTH_SOCK=/home/an.ginder/.keeper/anael.ginder@nameshield.net.ssh_agent +#source ~/.zsh/zsh-autocomplete/zsh-autocomplete.plugin.zsh +source "$HOME/.zsh/spaceship/spaceship.zsh" diff --git a/install/install.sh b/install/install.sh new file mode 100755 index 0000000..39bc2e9 --- /dev/null +++ b/install/install.sh @@ -0,0 +1,59 @@ +#!/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