This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/installFish.sh
2021-11-08 17:50:17 +01:00

50 lines
No EOL
2.5 KiB
Bash

# Ajoute le dépôt officiel de Fish
sudo apt-add-repository ppa:fish-shell/release-3 -y
# Met à jour la liste des applications
sudo apt update
# 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
# Définie fish command shell par défaut
sudo chsh -s /usr/bin/fish $USER
# Retire le motd
fish -c 'set -U fish_greeting'
# Installe le ^R (recherche inversée)
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
fish -c 'fisher install jethrokuan/fzf'
# Installe SSH
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/
# Met à jour ma configuration personnalisée SSH
rm $HOME/.ssh/config 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.ssh/config -P $HOME/.ssh/
# Met à jour ma configuration personalisée Fish
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/
# Met à jour mon prompt personalisée Fish
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/
# Change les couleurs (basé sur Base16 Eighties)
$ set -L
$ set -U fish_color_normal normal
$ set -U fish_color_command 99cc99
$ set -U fish_color_quote ffcc66
$ set -U fish_color_redirection d3d0c8
$ set -U fish_color_end cc99cc
$ set -U fish_color_error f2777a
$ set -U fish_color_param d3d0c8
$ set -U fish_color_comment ffcc66
$ set -U fish_color_match 6699cc
$ set -U fish_color_selection white --bold --background=brblack
$ set -U fish_color_search_match bryellow --background=brblack
$ set -U fish_color_history_current --bold
$ set -U fish_color_operator 6699cc
$ set -U fish_color_escape 66cccc
$ set -U fish_color_cwd green
$ set -U fish_color_cwd_root red
$ set -U fish_color_valid_path --underline
$ set -U fish_color_autosuggestion 747369
$ set -U fish_color_user brgreen
$ set -U fish_color_host normal
$ set -U fish_color_cancel -r
$ set -U fish_pager_color_completion normal
$ set -U fish_pager_color_description B3A06D yellow
$ set -U fish_pager_color_prefix normal --bold --underline
$ set -U fish_pager_color_progress brwhite --background=cyan
echo "You must log out to finish applying the changes."