-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·41 lines (33 loc) · 1.49 KB
/
setup.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
#!/bin/sh
set -x # Print commmands and expands variables
BASEDIR=$(python3 -c "import os; print(os.path.realpath('$(dirname "$0")'))")
# tmux plugin manager
# TODO: not sure if this is needed. .tmux.conf has a line about installing tpm
git clone [email protected]:tmux-plugins/tpm ~/.tmux/plugins/tpm
# vim-plugin installation
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# nvim configurations
mkdir -p ~/.config/nvim
ln -s $BASEDIR/config/nvim/init.vim ~/.config/nvim/init.vim
ln -s $BASEDIR/config/nvim/coc.vim ~/.config/nvim/coc.vim
ln -s $BASEDIR/config/nvim/vim-which-key.vim ~/.config/nvim/vim-which-key.vim
ln -s $BASEDIR/config/nvim/coc-settings.json ~/.config/nvim/coc-settings.json
ln -s $BASEDIR/config/nvim/ftplugin/ ~/.config/nvim/ftplugin
# alacritty configurations
mkdir -p ~/.config/alacritty
ln -s $BASEDIR/config/alacritty/alacritty.yml ~/.config/alacritty/alacritty.yml
# skim links
#mkdir -p ~/.local/bin
#ln -s ~/.skim/bin/sk ~/.local/bin/sk
#ln -s ~/.skim/bin/sk-tmux ~/.local/bin/sk-tmux
# create a manual bash_completion folder
#mkdir -p ~/.bash_completion.d
# symbolic links misc
# TODO: Figure out how to do the same thing for zsh
#ln -s $BASEDIR/bash_aliases ~/.bash_aliases
#ln -s $BASEDIR/bash_completion ~/.bash_completion
ln -s $BASEDIR/tmux.conf ~/.tmux.conf
ln -s $BASEDIR/gitignore ~/.gitignore
ln -s $BASEDIR/gitconfig ~/.gitconfig
ln -s $BASEDIR/dircolors.ansi-universal ~/.dircolors