irongit

A combination of vim and bash that I find useful

ghostshell/install.sh
40 lines886 BBourne Again Shell (bash)
1#!/bin/bash
2if grep -q 'source ~/.ghost/ghost.sh' ~/.bashrc
3then
4 echo 'Bash is configured for ghostshell'
5else
6 echo 'source ~/.ghost/ghost.sh' >> .bashrc
7 echo 'Utilize ghost shell'
8fi
9
10if grep -q 'source ~/.ghost/ghost.vimrc' ~/.vimrc
11then
12 echo 'Vim is configured for ghostshell'
13else
14 cp .vimrc /tmp/.vimrc && echo 'source ~/.ghost/ghost.vimrc' > .vimrc && cat /tmp/.vimrc >> .vimrc
15 echo 'Utilize ghost vim'
16fi
17echo
18
19mkdir -p ~/.vim/pack/vendor/start
20cd ~/.vim/pack/vendor/start
21
22plug () {
23 IFS='/' read -ra arr <<< $1
24 if [ -d "${arr[1]}" ]; then
25 echo "$1"' already exists'
26 else
27 git clone https://github.com/"$1"
28 fi
29}
30
31plug preservim/nerdtree
32plug ycm-core/YouCompleteMe
33plug rafi/awesome-vim-colorschemes
34plug davidhalter/jedi-vim
35plug ryanoasis/vim-devicons
36echo
37
38cd YouCompleteMe
39git submodule update --init --recursive
40./install.py