irongit

A combination of vim and bash that I find useful

added some django stuff

huncholanehuncholaneauthored
parent e3ddcb6commit 3cd61a24c495a8788b03be275b9e6bfc00c16e0dBrowse files

2 files changed, +29 -3

+2-0.bashrc
@@ -0,0 +1,2 @@
1+source ~/.ghost/ghost.sh
2+source ~/.ghost/ghost.sh
+27-3ghost.sh
@@ -1,5 +1,11 @@
11 git config --global core.autocrlf input
2-alias python=python3
2+if uname -a | grep -q MINGW;then
3+ alias python3=python
4+ alias Python=python
5+else
6+ alias python=python3
7+fi
8+#alias python=python3
39 alias Vim='vim ~/.vimrc'
410 alias Gvim='vim ~/.ghost/ghost.vimrc'
511 alias Gbash='vim ~/.ghost/ghost.sh'
@@ -8,11 +14,11 @@ alias Bash='vim ~/.bashrc'
814 alias Source='source ~/.bashrc'
915 alias gcom='git add . && git commit -m'
1016 alias ghook='~/.ghost/ghook/startproject.sh'
11-alias venv='python3 -m venv venv'
17+alias venv='python -m venv venv'
1218 function vsource() {
1319 local start=`pwd`
1420 for i in $(seq 1 5);do
15- if ! source venv/bin/activate; then
21+ if ! source venv/**/activate; then
1622 cd ..
1723 else
1824 cd $start
@@ -28,3 +34,21 @@ function Gpush() {
2834 git push -u origin main
2935 cd $start
3036 }
37+function Djs() {
38+ local start=`pwd`
39+ for i in $(seq 1 5);do
40+ if test -f manage.py;then
41+ python manage.py runserver $1
42+ break
43+ fi
44+ done
45+}
46+function Dj() {
47+ local start=`pwd`
48+ for i in $(seq 1 5);do
49+ if test -f manage.py;then
50+ python manage.py $@
51+ break
52+ fi
53+ done
54+}