summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100755
index 0000000..f0cf83b
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,21 @@
1#!/bin/bash
2
3SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
4cd "$SCRIPT_DIR" || exit
5
6# Shell appearance (only append if not already present)
7grep -q 'di=38;5;135' /etc/bashrc || sudo tee -a /etc/bashrc > /dev/null << 'EOF'
8LS_COLORS=$LS_COLORS:'di=38;5;135:ex=00;32:' ; export LS_COLORS
9PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ '
10export TERM=xterm-256color
11EOF
12source /etc/bashrc
13
14# Timezone
15sudo timedatectl set-timezone Asia/Singapore
16
17# Core setup
18sudo bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; }
19sudo bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; }
20sudo bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; }
21sudo bash ./core/tmux.sh || { echo "Failed to configure Tmux"; exit 1; }