rnt; allowing for custom environment to be sourced automatically
This commit is contained in:
parent
2b1234388b
commit
a1c51eac86
@ -59,7 +59,10 @@ function rnt() {
|
|||||||
cd "$1" >/dev/null 2>/dev/null;
|
cd "$1" >/dev/null 2>/dev/null;
|
||||||
[ -f "./env/bin/activate" ] \
|
[ -f "./env/bin/activate" ] \
|
||||||
&& source "./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";
|
[ -d "./code" ] && cd "./code";
|
||||||
}
|
}
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user