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