refractor(script installation): modification divers
This commit is contained in:
@@ -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"
|
||||
Executable
+59
@@ -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
|
||||
Reference in New Issue
Block a user