-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run gui editor? #127
Comments
sops will wait for the editor to exit. It looks like atom spawns a child process and then exits the main process. This will not work with sops. Atom has a #!/bin/bash
atom -w And set EDITOR to that. |
How about adding this information to the README ? |
Could you add a note for this to the readme? On Oct 20, 2016 3:28 PM, "Adrian Utrilla" notifications@github.com wrote:
|
On slightly more modern versions of atom, the same can be achieved without creating any scripts, but rather just by exporting editor as follows: |
And for folks flexing Jetbrains IDEs, you can use the
Drop that into a new batch file (e.g. So in my case, the final value of
However, after doing all this, it works like a charm in PhpStorm. 🎉 |
It appears that I can't use gui-based editors such as Atom or Sublime with sops.
My
.bash_profile
containsexport EDITOR=/usr/local/bin/atom
When I try to edit any sops-encrypted file I get something like:
A few sec later Atom opens up with that tmpq6K2_D.yaml file.
It is my understanding that this happens because gui editors open in a separate process outside of my terminal.
Regular terminal editors such vi/nano/mcedit work as expected.
How can I use gui editors with sops?
The text was updated successfully, but these errors were encountered: