irongit

A combination of vim and bash that I find useful

now we have redis behave like a real redis

huncholanehuncholaneauthored
parent dfdf574commit 32b12b881d3efbb52297f6160aad8527b4c146baBrowse files

1 file changed, +18 -2

+18-2ghost.sh
@@ -37,7 +37,7 @@ function Gpush() {
3737 git push -u origin main
3838 cd $start
3939 }
40-function Djs() {
40+function djs() {
4141 local start=`pwd`
4242 for i in $(seq 1 5);do
4343 if test -f manage.py;then
@@ -46,7 +46,7 @@ function Djs() {
4646 fi
4747 done
4848 }
49-function Dj() {
49+function dj() {
5050 local start=`pwd`
5151 for i in $(seq 1 5);do
5252 if test -f manage.py;then
@@ -61,3 +61,19 @@ function Gupdate() {
6161 Source
6262 cd $start
6363 }
64+function djp() {
65+ # start a django project
66+ django-admin startproject $@
67+}
68+function pi {
69+ python -m pip install $@
70+}
71+function pm {
72+ python -m $@
73+}
74+function redis {
75+ docker run -p 6379:6379 --name redis -d redis:5
76+}
77+function redis-cli {
78+ docker exec -it redis redis-cli
79+}