| 1 | |
| 2 | if grep -q 'source ~/.ghost/ghost.sh' ~/.bashrc |
| 3 | then |
| 4 | echo 'Bash is configured for ghostshell' |
| 5 | else |
| 6 | echo 'source ~/.ghost/ghost.sh' >> .bashrc |
| 7 | echo 'Utilize ghost shell' |
| 8 | fi |
| 9 | |
| 10 | if grep -q 'source ~/.ghost/ghost.vimrc' ~/.vimrc |
| 11 | then |
| 12 | echo 'Vim is configured for ghostshell' |
| 13 | else |
| 14 | cp .vimrc /tmp/.vimrc && echo 'source ~/.ghost/ghost.vimrc' > .vimrc && cat /tmp/.vimrc >> .vimrc |
| 15 | echo 'Utilize ghost vim' |
| 16 | fi |
| 17 | echo |
| 18 | |
| 19 | mkdir -p ~/.vim/pack/vendor/start |
| 20 | cd ~/.vim/pack/vendor/start |
| 21 | |
| 22 | plug () { |
| 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 | |
| 31 | plug preservim/nerdtree |
| 32 | plug ycm-core/YouCompleteMe |
| 33 | plug rafi/awesome-vim-colorschemes |
| 34 | plug davidhalter/jedi-vim |
| 35 | plug ryanoasis/vim-devicons |
| 36 | echo |
| 37 | |
| 38 | cd YouCompleteMe |
| 39 | git submodule update --init --recursive |
| 40 | ./install.py |