irongit

A combination of vim and bash that I find useful

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