irongit

A combination of vim and bash that I find useful

no need for quotes on commit

huncholanehuncholaneauthored
parent 32b12b8commit 9f23a5985b86d13372038dd4f73acf662adc8c6dBrowse files

1 file changed, +7 -4

+7-4ghost.sh
@@ -14,10 +14,14 @@ alias Gbash='vim ~/.ghost/ghost.sh'
1414 alias clip=clip.exe
1515 alias Bash='vim ~/.bashrc'
1616 alias Source='source ~/.bashrc'
17-alias gcom='git add . && git commit -m'
1817 alias ghook='~/.ghost/ghook/startproject.sh'
1918 alias venv='python -m venv venv'
2019 alias Gsecret='vim ~/.ghost/secret.sh'
20+function gcom {
21+ local message=$@
22+ echo "$message"
23+ git add . && git commit -m "$message"
24+}
2125 function vsource() {
2226 local start=`pwd`
2327 for i in $(seq 1 5);do
@@ -31,9 +35,8 @@ function vsource() {
3135 }
3236 function Gpush() {
3337 local start=`pwd`
34- local message=$@
3538 cd ~/.ghost
36- gcom "$message"
39+ gcom $@
3740 git push -u origin main
3841 cd $start
3942 }
@@ -75,5 +78,5 @@ function redis {
7578 docker run -p 6379:6379 --name redis -d redis:5
7679 }
7780 function redis-cli {
78- docker exec -it redis redis-cli
81+ docker exec -it redis redis-cli $@
7982 }