Explorar o código

Add export-env alias to export vars from the local .env

Tom McKenzie %!s(int64=6) %!d(string=hai) anos
pai
achega
5fc8fca598
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      .rc.d/aliases.sh

+ 3 - 0
.rc.d/aliases.sh

@@ -5,6 +5,9 @@ alias lr='ls -tRFh'   # sorted by date,recursive,show type,human readable
 alias lt='ls -ltFh'   # long list,sorted by date,show type,human readable
 alias ll='ls -l'      # long list
 
+# export local .env file
+alias export-env="export \$(grep -v '^#' .env | xargs -0)"
+
 # http
 alias http-server='python -m SimpleHTTPServer'