mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 22:47:29 +01:00
start out with thoughtbots version
This commit is contained in:
committed by
Thomas Ruoff
parent
891caebf74
commit
bc1bd4f5e6
10
zsh/functions/envup
Normal file
10
zsh/functions/envup
Normal file
@@ -0,0 +1,10 @@
|
||||
# Load .env file into shell session for environment variables
|
||||
|
||||
function envup() {
|
||||
if [ -f .env ]; then
|
||||
export $(cat .env)
|
||||
else
|
||||
echo 'No .env file found' 1>&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user