mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 15:07:23 +01:00
start out with thoughtbots version
This commit is contained in:
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