-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·42 lines (32 loc) · 829 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·42 lines (32 loc) · 829 Bytes
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
#!/bin/sh
TMUX_FILE="${HOME}/.tmux.conf"
VIMRC="${HOME}/.vimrc"
LOCAL_VIMRC="${HOME}/.vimrc.local"
LOCAL_BUNDLES_VIMRC="${HOME}/.vimrc.local.bundles"
ZSH="${HOME}/.zshrc"
CONFIG_DIR="${HOME}/.config"
NEOVIM_DIR="$CONFIG_DIR/nvim"
PGCLI_DIR="$CONFIG_DIR/pgcli"
cp tmux.conf $TMUX_FILE
cp vimrc $VIMRC
cp vimrc.local $LOCAL_VIMRC
cp vimrc.local.bundles $LOCAL_BUNDLES_VIMRC
cp zshrc $ZSH
echo "checking config directory"
if [ ! -d "${HOME}/.config" ]
then
mkdir -p $PGCLI_DIR
fi
echo "creating nvim direcotry"
mkdir -p $NEOVIM_DIR
# echo "configure neovim"
# cp -R neovim/* $NEOVIM_DIR
echo "configure pgcli"
cp -r pgcli/* $PGCLI_DIR
# echo "installing spacevim"
curl -sLf https://spacevim.org/install.sh | bash
cp -R spacevim/.SpaceVim.d $HOME
cd ~
pip install neovim
vim +PlugInstall +qall
nvim +PlugInstall +qall