Jelajahi Sumber

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

Tom McKenzie 6 tahun lalu
induk
melakukan
5fc8fca598
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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'