irongit

A combination of vim and bash that I find useful

more docker stuf

huncholanehuncholaneauthored
parent 14f7c9fcommit fe72d60e6b388f04ac2a848f69c9fea126ff41ddBrowse files

2 files changed, +18 -4

+16-4gfuncs.sh
@@ -56,12 +56,12 @@ function pygrep {
5656 grep -rni "$@" $package
5757 cd $start
5858 }
59-function rootrun {
59+function dev {
6060 local start=`pwd`
6161 for i in $(seq 1 5);do
62- if test -f rootrun.sh;then
63- chmod +x rootrun.sh
64- ./rootrun.sh
62+ if test -f dev.sh;then
63+ chmod +x dev.sh
64+ ./dev.sh
6565 break
6666 else
6767 cd ..
@@ -84,3 +84,15 @@ function gcode {
8484 echo "Opening $choice with vscode"
8585 code $choice
8686 }
87+function vbash {
88+ local start=`pwd`
89+ for i in $(seq 1 5);do
90+ if test -d venv;then
91+ vim venv/**/activate
92+ break
93+ else
94+ cd ..
95+ fi
96+ done
97+ cd $start
98+}
+2-0ghost.sh
@@ -6,6 +6,7 @@ if uname -a | grep -q MINGW;then
66 export thisos='windows'
77 alias python3=python
88 alias Python=python
9+ alias drivers='cd /c/Windows/System32/drivers/etc'
910 else
1011 alias python=python3
1112 fi
@@ -28,5 +29,6 @@ alias pi='python -m pip install'
2829 alias djp='django-admin startproject'
2930 alias dwipe='~/.ghost/dwipe.sh'
3031 alias Ggit='vim ~/.gitconfig'
32+alias ddev='docker compose -f dev-compose.yml up -d --remove-orphans'
3133
3234 source ~/.ghost/gfuncs.sh