-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·50 lines (40 loc) · 1.06 KB
/
install.sh
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
#!/bin/bash
info() {
echo "$@"
}
warn() {
echo "$(tput setaf 1)$@$(tput sgr0)"
}
install() {
local src="$(pwd)/$1"
local dst=${2:-"$HOME/$1"}
info "linking $src to $dst"
ln -sf $src $dst
# cp $src $dst
}
gitstall() {
if [ -d "$2" ]; then
rm -rf "$2"
fi
git clone "$1" "$2"
info "cloning $1 to $2"
}
warn "Symlinking files"
# install .gitconfig
# install .zshrc
# install .tmux.conf
# install init.lua "$HOME/.config/nvim/init.lua"
# install plugins.lua "$HOME/.config/nvim/lua/plugins.lua"
install alacritty.toml "$HOME/.config/alacritty/alacritty.toml"
# install base.vim "$HOME/base.vim"
# install .gitattributes
# warn "Installing misc deps"
# curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
warn "Running misc commands"
# $(which vim) +PlugUpdate +qall
# if command -v nvim; then
# $(which nvim) +PlugUpdate +qall
# fi