A combination of vim and bash that I find useful
added some postgres stuff
3 files changed, +9 -4
+1-0.bashrc
| @@ -1,2 +1,3 @@ | ||
| 1 | 1 | source ~/.ghost/ghost.sh |
| 2 | 2 | source ~/.ghost/ghost.sh |
| 3 | +source ~/.ghost/ghost.sh |
+6-0ghost.sh
| @@ -120,3 +120,9 @@ function gcode { | ||
| 120 | 120 | echo "Opening $choice with vscode" |
| 121 | 121 | code $choice |
| 122 | 122 | } |
| 123 | +function postgres { | |
| 124 | + docker run -p 5432:5432 --name postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d postgres | |
| 125 | +} | |
| 126 | +function psql { | |
| 127 | + docker exec -it postgres psql -U postgres $@ | |
| 128 | +} |
+2-4install.sh
| @@ -1,4 +1,6 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | +touch ~/.bashrc | |
| 3 | +touch ~/.vimrc | |
| 2 | 4 | if grep -q 'source ~/.ghost/ghost.sh' ~/.bashrc |
| 3 | 5 | then |
| 4 | 6 | echo 'Bash is configured for ghostshell' |
| @@ -29,12 +31,8 @@ plug () { | ||
| 29 | 31 | } |
| 30 | 32 | |
| 31 | 33 | plug preservim/nerdtree |
| 32 | -plug ycm-core/YouCompleteMe | |
| 33 | 34 | plug rafi/awesome-vim-colorschemes |
| 34 | 35 | plug davidhalter/jedi-vim |
| 35 | 36 | plug ryanoasis/vim-devicons |
| 36 | 37 | echo |
| 37 | 38 | |
| 38 | -cd YouCompleteMe | |
| 39 | -git submodule update --init --recursive | |
| 40 | -./install.py |