A combination of vim and bash that I find useful
more docker stuf
2 files changed, +18 -4
+16-4gfuncs.sh
| @@ -56,12 +56,12 @@ function pygrep { | ||
| 56 | 56 | grep -rni "$@" $package |
| 57 | 57 | cd $start |
| 58 | 58 | } |
| 59 | -function rootrun { | |
| 59 | +function dev { | |
| 60 | 60 | local start=`pwd` |
| 61 | 61 | 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 | |
| 65 | 65 | break |
| 66 | 66 | else |
| 67 | 67 | cd .. |
| @@ -84,3 +84,15 @@ function gcode { | ||
| 84 | 84 | echo "Opening $choice with vscode" |
| 85 | 85 | code $choice |
| 86 | 86 | } |
| 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 | ||
| 6 | 6 | export thisos='windows' |
| 7 | 7 | alias python3=python |
| 8 | 8 | alias Python=python |
| 9 | + alias drivers='cd /c/Windows/System32/drivers/etc' | |
| 9 | 10 | else |
| 10 | 11 | alias python=python3 |
| 11 | 12 | fi |
| @@ -28,5 +29,6 @@ alias pi='python -m pip install' | ||
| 28 | 29 | alias djp='django-admin startproject' |
| 29 | 30 | alias dwipe='~/.ghost/dwipe.sh' |
| 30 | 31 | alias Ggit='vim ~/.gitconfig' |
| 32 | +alias ddev='docker compose -f dev-compose.yml up -d --remove-orphans' | |
| 31 | 33 | |
| 32 | 34 | source ~/.ghost/gfuncs.sh |