2021-11-14 00:44:24 +01:00
|
|
|
# Adds the official Fish repository
|
2021-11-08 15:33:23 +01:00
|
|
|
sudo apt-add-repository ppa:fish-shell/release-3 -y
|
2021-11-14 00:44:24 +01:00
|
|
|
# Updates the list
|
2021-11-08 15:33:23 +01:00
|
|
|
sudo apt update
|
2021-11-14 00:44:24 +01:00
|
|
|
# Install Fish, fzf (for the reverse search), bat (for the colored manuals), procps (for the SSH), curl (for downloading scripts)
|
2021-11-08 15:45:03 +01:00
|
|
|
sudo apt install fish fzf bat procps curl -y
|
2021-11-14 00:44:24 +01:00
|
|
|
# Fish default shell
|
2021-11-08 17:21:39 +01:00
|
|
|
sudo chsh -s /usr/bin/fish $USER
|
2021-11-14 00:44:24 +01:00
|
|
|
# Removing motd
|
2021-11-08 15:39:31 +01:00
|
|
|
fish -c 'set -U fish_greeting'
|
2021-11-14 00:44:24 +01:00
|
|
|
# Install ^R (reversed research)
|
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-14 00:44:24 +01:00
|
|
|
# Install 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-14 00:44:24 +01:00
|
|
|
# Update with my custom SSH configuration (comment this for you)
|
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-14 00:44:24 +01:00
|
|
|
# Update the fish config with mine (edit that once installed for you)
|
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-14 00:44:24 +01:00
|
|
|
# Update the prompt with mine
|
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-14 00:44:24 +01:00
|
|
|
# Updating color scheme (based on Base16 Eighties)
|
2021-11-08 17:51:45 +01:00
|
|
|
fish -c 'set -U fish_color_normal normal'
|
|
|
|
fish -c 'set -U fish_color_command 99cc99'
|
|
|
|
fish -c 'set -U fish_color_quote ffcc66'
|
|
|
|
fish -c 'set -U fish_color_redirection d3d0c8'
|
|
|
|
fish -c 'set -U fish_color_end cc99cc'
|
|
|
|
fish -c 'set -U fish_color_error f2777a'
|
|
|
|
fish -c 'set -U fish_color_param d3d0c8'
|
|
|
|
fish -c 'set -U fish_color_comment ffcc66'
|
|
|
|
fish -c 'set -U fish_color_match 6699cc'
|
|
|
|
fish -c 'set -U fish_color_selection white --bold --background=brblack'
|
|
|
|
fish -c 'set -U fish_color_search_match bryellow --background=brblack'
|
|
|
|
fish -c 'set -U fish_color_history_current --bold'
|
|
|
|
fish -c 'set -U fish_color_operator 6699cc'
|
|
|
|
fish -c 'set -U fish_color_escape 66cccc'
|
|
|
|
fish -c 'set -U fish_color_cwd green'
|
|
|
|
fish -c 'set -U fish_color_cwd_root red'
|
|
|
|
fish -c 'set -U fish_color_valid_path --underline'
|
|
|
|
fish -c 'set -U fish_color_autosuggestion 747369'
|
|
|
|
fish -c 'set -U fish_color_user brgreen'
|
|
|
|
fish -c 'set -U fish_color_host normal'
|
|
|
|
fish -c 'set -U fish_color_cancel -r'
|
|
|
|
fish -c 'set -U fish_pager_color_completion normal'
|
|
|
|
fish -c 'set -U fish_pager_color_description B3A06D yellow'
|
|
|
|
fish -c 'set -U fish_pager_color_prefix normal --bold --underline'
|
|
|
|
fish -c 'set -U fish_pager_color_progress brwhite --background=cyan'
|
2021-11-08 17:21:39 +01:00
|
|
|
|
2021-11-08 17:51:45 +01:00
|
|
|
echo "You must log out to finish applying the changes."
|