#!/bin/bash # Disable running as root. if [[ "$EUID" -eq 0 ]]; then echo "Please do not run as root" exit 1 fi # Update, run twice incase of keychain updates sudo pacman -Syuu -q --noconfirm sudo pacman -Syuu -q --noconfirm flatpak update --assumeyes flatpak update --assumeyes # Install the tools I like to use in the CLI sudo pacman -S -q --noconfirm \ base-devel \ unrar \ git \ cmake \ curl \ wget \ flatpak \ neovim \ vim # Install over pacman programs I use mkdir -p ~/Applications sudo pacman -S -q --noconfirm firefox \ gparted \ solaar \ qbittorrent \ vlc \ pinta \ cheese \ #meld \ filezilla \ inkscape \ gnome-chess \ gnome-mines \ gnome-sudoku \ aisleriot \ handbrake \ audacity \ blender \ #maliit-framework \ #maliit-keyboard \ tiled \ libreoffice-fresh \ #xorg-xcursorgen \ plasma-wayland-session \ steam \ zip \ ttc-iosevka # Install programs using flatpak flatpak install flathub \ com.bitwarden.desktop \ com.obsproject.Studio \ com.discordapp.Discord \ com.usebottles.bottles \ org.libretro.RetroArch \ org.gnome.NetworkDisplays \ org.gnome.gitlab.YaLTeR.VideoTrimmer \ com.orama_interactive.Pixelorama \ #com.parsecgaming.parsec \ #com.github.tenderowl.frog \ com.uploadedlobster.peek \ --assumeyes # VS Code (AUR) git clone https://aur.archlinux.org/visual-studio-code-bin cd visual-studio-code-bin makepkg -si --noconfirm cd .. # pCloud if [ ! -f "~/Applications/pcloud" ]; then wget https://p-def8.pcloud.com/cBZu1eKrMZMqwjTqZZZh9ILr7Z2ZZmNzZkZPF7pVZrHZrzZBpZpRZc5Z6pZopZ9pZApZGFZUJZkJZPpZkzZWTVkVZQDtD9nHvjKu7c1tTLeXYVj05EfNk/pcloud -O ~/Applications/pcloud chmod +x ~/Applications/pcloud ~/Applications/pcloud & fi # PIA if ! command -v piactl &> /dev/null then wget https://installers.privateinternetaccess.com/download/pia-linux-3.3.1-06924.run -O ~/Downloads/pia.run chmod +x ~/Downloads/pia.run mkdir -p ~/.config/privateinternetaccess cp ./scripts/pia-settings.json ~/.config/privateinternetaccess/clientsettings.json ~/Downloads/pia.run rm ~/Downloads/pia.run fi # Node JS / NVM if ! command -v nvm &> /dev/null then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" fi nvm install --lts npm i -g yarn # VIM sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' cp ./configs/vimrc-plugins ~/.config/nvim/init.vim vim +"PlugInstall --sync" +qa cat ./configs/vimrc-config >> ~/.config/nvim/init.vim echo "alias vim='nvim'" >> ~/.bashrc