rnt; allowing for custom environment to be sourced automatically

This commit is contained in:
Wryn Wagner 2021-02-23 09:20:12 -07:00
parent 2b1234388b
commit a1c51eac86

View File

@ -59,7 +59,10 @@ function rnt() {
cd "$1" >/dev/null 2>/dev/null;
[ -f "./env/bin/activate" ] \
&& source "./env/bin/activate" \
|| echo No environment here, boss!;
|| echo 'No environment here, boss!';
[ -f "./myenv" ] \
&& source "./myenv" \
&& echo 'Loaded custom environment settings!';
[ -d "./code" ] && cd "./code";
}
esac