commit d21c90255aa05cc1fcd0265a094421a913c33665 Author: gabriel becker Date: Thu Jun 15 11:22:06 2023 +1000 python and git aliases diff --git a/git b/git new file mode 100644 index 0000000..0293f6b --- /dev/null +++ b/git @@ -0,0 +1 @@ +alias gitig="echo \$1 >> $PWD/.gitignore" diff --git a/python b/python new file mode 100644 index 0000000..4a1c263 --- /dev/null +++ b/python @@ -0,0 +1,15 @@ +export PYENVDIR=~/.pyenvs + +alias actvenv="source .venv/bin/activate" + +npyenv () { + pythonversion=$2 + python${pythonversion:=3.10} -m venv $PYENVDIR/$1 + ln -s $PYENVDIR/$1 .venv + actvenv +} + + +alias pygr="source ~/.pyenvs/playground/bin/activate" +alias newds="cookiecutter -c v1 https://git.lgoon.xyz/gabriel/my-datascience-cookiecutter" +