A combination of vim and bash that I find useful
renamed to Gpush
1 file changed, +2 -2
+2-2ghost.sh
| @@ -20,13 +20,13 @@ function vsource() { | ||
| 20 | 20 | fi |
| 21 | 21 | done |
| 22 | 22 | } |
| 23 | -function Gsend() { | |
| 23 | +function Gpush() { | |
| 24 | 24 | local start=`pwd` |
| 25 | 25 | local message=$@ |
| 26 | - echo $message | |
| 27 | 26 | cd ~/.ghost |
| 28 | 27 | gcom "$message" |
| 29 | 28 | git push -u origin main |
| 29 | + cd start | |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | export -f vsource |