-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·64 lines (49 loc) · 1.49 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env sh
NOW=$(date +%s)
run() {
echo $@
$@
}
install() {
SRC="$PWD/$1"
DEST="$HOME/$1"
if [ "$PWD" == "$HOME" ]; then
exit 1
fi
if [ -h "$DEST" ]; then # if $DEST is a symlink, we can probably delete it.
run rm "$DEST"
elif [ -e "$DEST" ]; then
run mv "$DEST" "$DEST.orig-$NOW"
fi
run ln -s "$SRC" "$DEST"
}
shopt -s dotglob extglob
platform=$(uname | tr "[:upper:]" "[:lower:]")
install .bashrc
install .bashrc_${platform}
install .editorconfig
install .gitconfig
install .gitignore
install .tigrc
install .tmux.conf
install .vimrc
install .zshrc
install .zshrc_${platform}
install .p10k.zsh
#echo "install bash-it"
#git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it && ~/.bash_it/install.sh -n
echo "Installing antigen"
git clone https://github.com/zsh-users/antigen.git ~/.antigen
echo "Installing tmux plugin manager"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
#pkgs = "git zsh nvim vim ripgrep bat eza fd fzf git-delta httpie thefuck"
#if ${platform} == "Darwin" then
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# for pkg in ${pkgs}; do
# brew install ${pkg}
# done
#fi
#git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
#echo "Install astronvim"
git clone --depth=1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
git clone git@github.com:jehoffmann/astronvim_config.git ~/.config/nvim/lua/user