ソースを参照

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

Tom McKenzie 7 年 前
親
コミット
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'