-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·68 lines (55 loc) · 1.01 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·68 lines (55 loc) · 1.01 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
#!/bin/bash
set -e
# set -x
DOTFILES_FOLDER="$(dirname "$(realpath "$0")")"
if [ ! -x "$(command -v apt-get)" ]; then
echo "Can't install packages without apt"
exit 1
fi
LN="ln -sf"
PACKAGES=(
git
curl wget
vim
rsync
htop
zip unzip
gzip tar
tmux
httpie
tree
links
shellcheck
jq
detox
rename
wireguard-tools
)
echo "Installing packages"
sudo apt-get install -y "${PACKAGES[@]}"
mkdir -p "$HOME/.config/terminator/"
DOTFILES=(
"vimrc"
"tmux.conf"
"zshrc"
"editorconfig"
"gitconfig"
"vim"
"selected_editor"
"ycm_extra_conf.py"
"ideavimrc"
"Xresources"
"config/terminator/config"
)
for file in "${DOTFILES[@]}"
do
$LN "$DOTFILES_FOLDER/$file" "$HOME/.${file}"
echo "Linked $DOTFILES_FOLDER/$file to $HOME/.${file}"
done
if [[ ! -f "$HOME/.vim/autoload" ]]
then
echo "Installing vim plug"
curl -fLo "$HOME/.vim/autoload/plug.vim" --create-dirs \
"https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
fi
vim -E +PlugUpgrade +PlugClean! +PlugInstall +PlugUpdate +qall