Git Product home page Git Product logo

alfred-env-workflow's Introduction

alfred-env-workflow

Alfred 3 Workflow——加载环境变量并运行mac应用

解决mac上直接运行app,出现找不到环境变量,找不到文件或命令的问题。

下载

Run App with ENV (bash ver).alfredworkflow

Run App with ENV (zsh ver).alfredworkflow

使用

env 应用关键字

示例

演示

制作动机

最近发现 mac 上面的app,直接点击图标运行,是不会加载 shell 配置好的环境变量的。

比如Android Studio导入项目时找不到 ANDROID_HOME

ANDROID_HOME

SourceTree无法通过 connect SSH代理克隆项目,

SourceTree无法使用SSH代理

如果通过终端 open app 来运行应用,结果都没问题,看来是环境变量的问题。

于是试着搞了个 Alfred Workflow ,先 source ~/.bash_profile 导入环境变量,再 open 应用,效果不错。

alfred-env-workflow's People

Contributors

licheedev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.