2021-11-08 15:44:18 +01:00
|
|
|
# Ajoute le dépôt officiel de Fish
|
2021-11-08 15:33:23 +01:00
|
|
|
sudo apt-add-repository ppa:fish-shell/release-3 -y
|
2021-11-08 15:44:18 +01:00
|
|
|
# Met à jour la liste des applications
|
2021-11-08 15:33:23 +01:00
|
|
|
sudo apt update
|
2021-11-08 15:45:03 +01:00
|
|
|
# Installe fish, fzf (pour le ^R), bat (pour colorer les `man`), procps (pour SSH), curl (pour télécharger le script du ^R)
|
|
|
|
sudo apt install fish fzf bat procps curl -y
|
2021-11-08 15:44:18 +01:00
|
|
|
# Définie fish command shell par défaut
|
2021-11-08 17:21:39 +01:00
|
|
|
sudo chsh -s /usr/bin/fish $USER
|
2021-11-08 15:44:18 +01:00
|
|
|
# Retire le motd
|
2021-11-08 15:39:31 +01:00
|
|
|
fish -c 'set -U fish_greeting'
|
2021-11-08 15:44:18 +01:00
|
|
|
# Installe le ^R (recherche inversée)
|
2021-11-08 15:33:23 +01:00
|
|
|
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
|
|
|
|
fish -c 'fisher install jethrokuan/fzf'
|
2021-11-08 15:44:18 +01:00
|
|
|
# Installe SSH
|
2021-11-08 17:03:05 +01:00
|
|
|
rm $HOME/.config/fish/functions/fish_ssh_agent.fish 2>/dev/null; wget https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P $HOME/.config/fish/functions/
|
2021-11-08 15:44:18 +01:00
|
|
|
# Met à jour ma configuration personnalisée SSH
|
2021-11-08 17:03:05 +01:00
|
|
|
rm $HOME/.ssh/config 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.ssh/config -P $HOME/.ssh/
|
2021-11-08 15:44:18 +01:00
|
|
|
# Met à jour ma configuration personalisée Fish
|
2021-11-08 17:03:05 +01:00
|
|
|
rm $HOME/.config/fish/config.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/config.fish -P $HOME/.config/fish/
|
2021-11-08 15:44:18 +01:00
|
|
|
# Met à jour mon prompt personalisée Fish
|
2021-11-08 17:03:05 +01:00
|
|
|
rm $HOME/.config/fish/functions/fish_prompt.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/functions/fish_prompt.fish -P $HOME/.config/fish/functions/
|
2021-11-08 17:21:39 +01:00
|
|
|
|
|
|
|
echo "You must log out to finish applying the changes."
|