-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_linux.sh
More file actions
executable file
·71 lines (63 loc) · 1.59 KB
/
setup_linux.sh
File metadata and controls
executable file
·71 lines (63 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo ""
echo "Installing apt packages required to run."
echo ""
sudo apt update
sudo apt install -y \
curl
echo ""
echo "Seting up VSCode maintenance via apt."
echo ""
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
echo ""
echo "Installing apt packages that this script provides."
echo ""
# NOTE: `suckless-tools` provides `dmenu`.
sudo apt update
sudo apt install -y \
checkinstall \
code \
feh \
firefox \
git \
gnome-keyring \
i3status \
i3-wm \
notification-daemon \
suckless-tools \
terminator \
virtualenvwrapper \
zsh
echo ""
echo "Installing Oh My Zsh."
echo ""
OH_MY_ZSH_DIR="$HOME/.oh-my-zsh"
if [[ ! -d "$OH_MY_ZSH_DIR" ]]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git "$OH_MY_ZSH_DIR"
fi
chsh -s /bin/zsh
echo ""
echo "Installing fasd manually."
echo ""
# When there is a deb for 18.04 we should install from the PPA.
REPOS_DIR="$HOME/repos"
FASD_DIR="$REPOS_DIR/fasd"
if [[ ! -d "$FASD_DIR" ]]; then
mkdir -p "$REPOS_DIR"
git clone https://github.com/clvv/fasd.git "$FASD_DIR"
pushd "$FASD_DIR"
sudo checkinstall
popd # $FASD_DIR
fi
echo ""
echo "Symlinking configuration files into home directory."
echo ""
"$SCRIPTDIR/setup_symlinks.sh"
echo ""
echo "Done!"
echo ""