From d21c90255aa05cc1fcd0265a094421a913c33665 Mon Sep 17 00:00:00 2001 From: gabriel becker Date: Thu, 15 Jun 2023 11:22:06 +1000 Subject: [PATCH] python and git aliases --- git | 1 + python | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 git create mode 100644 python 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" +