Timeline for How to optimise my script, a script for opening new a new emacs instance only if no instance is present
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 14, 2017 at 16:17 | history | edited | woolfie | CC BY-SA 3.0 |
Improved formatting for bash function
|
Jul 14, 2017 at 16:16 | comment | added | woolfie | @patrix The formatting is a bit messed up (I'll edit to correct it). It's a single ampersand because I want to run emacs in the background. | |
Jul 12, 2017 at 15:14 | comment | added | nohillside♦ |
Shouldn't this be && return 0 ?
|
|
Jul 12, 2017 at 15:02 | comment | added | Nisba | Sorry, it was only the command -c which did not work. I have found an acceptable solution, see the edit, but if you can make your code work on macOS I would be glad. | |
Jul 12, 2017 at 14:21 | comment | added | user3439894 |
@Nisba, pgrep is already a part of macOS, its the BSD version, and all you need is pgrep Emacs , for the GUI version, to return its PID , if it's running.
|
|
Jul 12, 2017 at 14:15 | comment | added | Nisba |
I have installed pgrep with brew install proctools but the code is not working for me, I keep trying
|
|
Jul 12, 2017 at 14:12 | comment | added | Nisba | it gives error on pgrep, later I will try modyfing it. For the moment thank you | |
Jul 12, 2017 at 13:51 | history | answered | woolfie | CC BY-SA 3.0 |