Archive unused files, pending deletion
This commit is contained in:
61
archive/setup_linux.sh
Normal file
61
archive/setup_linux.sh
Normal file
@@ -0,0 +1,61 @@
|
||||
#!/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
|
||||
ranger
|
||||
)
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user