61 lines
876 B
Bash
61 lines
876 B
Bash
#!/bin/bash
|
|
|
|
JAVA=false
|
|
WORK=false
|
|
|
|
PPAS=(
|
|
"kelleyk/emacs"
|
|
"git-core/ppa"
|
|
"fish-shell/release-3"
|
|
)
|
|
|
|
PACKAGES=(
|
|
emacs27
|
|
vim
|
|
fish
|
|
ripgrep
|
|
fd-find
|
|
clang
|
|
git
|
|
curl
|
|
fzf
|
|
ncdu
|
|
autojump
|
|
direnv
|
|
tmux
|
|
python3-venv
|
|
xsel
|
|
jq
|
|
exfat-fuse
|
|
exfat-utils
|
|
)
|
|
|
|
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
|
|
vpnc
|
|
)
|
|
fi
|
|
|
|
for ppa in "${PPAS[@]}"
|
|
do
|
|
sudo add-apt-repository -y ppa:$ppa
|
|
done
|
|
|
|
sudo apt update
|
|
sudo apt install -y ${PACKAGES[@]}
|
|
|
|
# Use local time so as to not conflict with Windows
|
|
timedatectl set-local-rtc 1 --adjust-system-clock
|
|
|
|
# Change default shell
|
|
sudo chsh -s /usr/bin/fish $USER
|
|
|
|
bash ~/.dotfiles/setup_unix_common.sh
|