-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
executable file
·33 lines (28 loc) · 1.01 KB
/
setup
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
#!/usr/bin/env bash
# Install some programs
if command -v apt 2>&1 >/dev/null; then
if [ ! -f .packages_installed ]; then
while true; do
# Prompt user, and read command line argument
read -p "Do you want to install some essential packages [y/n]? " answer
case $answer in
[yY]* ) sudo apt -y install build-essential cmake gfortran m4 pkg-config \
environment-modules fzf openssh-server ripgrep tmux unrar \
texlive-fonts-extra vim-gui-common gimp inkscape && \
touch .packages_installed
break;;
[nN]* ) break;;
esac
done
fi
fi
# Load Bash It
source $BASH_IT/bash_it.sh
# Enable bash-it completions
bash-it enable completion bash-it
# Enable bash-it plugins
bash-it enable plugin extract
bash-it enable plugin history
bash-it enable plugin history-search
# Installing/updating vim plugins
vim -Nu vimrc.plugins +PlugInstall +qall