Code Monkey home page Code Monkey logo

osx-env-sync's People

Contributors

ersiner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osx-env-sync's Issues

Should this follow "source" calls?

My ~/.bash_profile just has one line: source .bashrc. For now I've just changed .osx-env-sync.sh to read from that file, but that's obviously not ideal. Would be cool if we could follow the chain of source calls. I could imagine some people splitting up their bashrc into several files based on area of concern, for instance.

Too late for commands restarted automatically

I have just discovered that this launchctl item is run after any programs that were restarted automatically because they were running at last logout or shutdown and restart items was selected. Therefore they do not see the intended environment.

Anyone know of a way to make this run before those items or an alternative that will run first?

Doesn't work with single-quote or empty exports

I don't currently need any of these in applications, so not a big deal, but worth noting:
export PS1='some stuff' doesn't work
export HISTFILESIZE= doesn't work
export HISTFILESIZE="" doesn't work

Works on Big Sur but had to reinstall the launch agent

This is a note to hopefully help others.

I found that osx-env-sync was not working on Big Sur. After investigation I discovered that the launch agent was no longer in ~/Library/LaunchAgents. I copied it there using the curl command given in README.md and it works again. I don't know when the launch agent was removed except that I did not do it. It is possible it was removed when I installed Catalina as I haven't needed sync'ing for a while.

Does not work on El Capitan

It looks like since many functions in launchctl were deprecated this approach does not work.

cat ~/Library/LaunchAgents/environment.plist

envsync local.envsync ProgramArguments sh -c launchctl setenv foo "bar" RunAtLoad

launchctl load ~/Library/LaunchAgents/environment.plist
/Users/.../Library/LaunchAgents/environment.plist: Operation not permitted

launchctl setenv foo "bar"
Not privileged to set domain environment.

load is apparently now a "Legacy Subcommand". The setenv subcommand also has issues.

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.