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/installation.sh

112 lines
3.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
# === Yay ===
sudo pacman -S yay --noconfirm
# === Fish ===
sudo pacman -S fish bat exa --noconfirm
# Remove motd
fish -c "set -U fish_greeting"
# Reversed search
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
fish -c 'fisher install jethrokuan/fzf'
# SSH need2check if really needed
# 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/
# Custom config.fish
rm "$HOME"/.config/fish/config.fish 2>/dev/null
wget https://git.kennel.ml/Anri/manjaroConfiguration/raw/branch/main/.config/fish/config.fish -P "$HOME"/.config/fish/
# Custom prompt shell
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2>/dev/null
wget https://git.kennel.ml/Anri/manjaroConfiguration/raw/branch/main/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
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'
# Add aliases
fish -c "abbr ls 'exa -glh'"
fish -c "abbr cp 'cp -rv'"
fish -c "abbr rm 'rm -rf'"
fish -c "abbr gcc 'gcc -Wall -Wextra -fanalyzer -g'"
fish -c "abbr g++ 'g++ -Wall -Wextra -fanalyzer -g -std=c++17'"
fish -c "abbr activate 'source bin/activate.fish'"
fish -c "abbr vs 'code .'"
fish -c "abbr untgz 'tar -xvzf'"
fish -c "abbr - 'cd -'"
fish -c "abbr cat 'batcat'"
# Remove fish icon
if [ -f /usr/share/applications/fish.desktop ]
then
sudo mv /usr/share/applications/fish.desktop /usr/share/applications/fish.desktop.bak
echo -e "\nFish icon removed!"
fi
# Fish by default in terminal app
# TODO
# GL4D
# Latex
# Java
# Python stuff
# Rust
# Sign commits
git config --global commit.gpgsign true
# tldr
# Git LFS
# VSCode
yay -S visual-studio-code-bin --noconfirm
# Spotify + no-ads mod
# Syncthing
# Discord
# Obsidian
# Flameshot
# Parsec
# Onlyoffice
# Emoji picker and stome stuff
# Gnome configuration
# Clipboard history
# Signal
# Paint
echo -e "\nInstallation done. 🎉"