#!/bin/bash JAVA=true WORK=false PPAS=( "kelleyk/emacs" "git-core/ppa" "fish-shell/release-3" ) PACKAGES=( gnome-tweak-tool emacs26 vim fish ripgrep fd-find clang git fzf ncdu autojump direnv net-tools tmux python3-venv ) if [ "$JAVA" == "true" ]; then wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add - sudo add-apt-repository -y 'deb https://apt.corretto.aws stable main' PACKAGES+=(java-11-amazon-corretto-jdk) fi if [ "$WORK" == "true" ]; then PACKAGES+=( # VPN "libpam0g:i386" "libx11-6:i386" "libstdc++6:i386" "libstdc++5:i386" libnss3-tools openssl xterm ) fi for ppa in "${PPAS[@]}" do sudo add-apt-repository -y ppa:$ppa done sudo apt update sudo apt install -y ${PACKAGES[@]} # Alt-drag gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '' gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true # Caps Lock -> Ctrl gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" # Use local time so as to not conflict with Windows timedatectl set-local-rtc 1 --adjust-system-clock # Change default shell sudo chsh -ls /usr/bin/fish $USER # SSH setup ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -q -P "" echo "Your SSH public key is:" echo "" cat ~/.ssh/id_rsa.pub echo "" read -p "Please add it to GitHub, then press enter to continue." git clone git@github.com:tim-mccarthy/dotfiles.git $HOME/.dotfiles bash ~/.dotfiles/setup_unix_common.sh