瀏覽代碼

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

Tom McKenzie 6 年之前
父節點
當前提交
5fc8fca598
共有 1 個文件被更改,包括 3 次插入0 次删除
  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'