Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4334  / 3 Years ago, mon, may 17, 2021, 1:48:54

I'd like some commands to run a script at startup.



However, my default shell is zsh, so the traditional .bash files seems unwise. At the same time, I believe .zshrc is sourced at every shell invocation.



How can I run a command at startup when my default shell is zsh?



EDIT: To be clear, by "startup" I mean login.


More From » scripts

 Answers
3

You might try using Startup Applications.



Here is what you have to do, to automatically start the command unity-2d-shell on startup. unity-2d-shell is just an example, you can have your own .sh scripts. Just save your script somewhere and add under command (step 2 below).




  1. Open Startup Applications



    Open <code>Startup Applications</code>


  2. Add Startup Program
    Add Startup Program



[#32238] Tuesday, May 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ousear

Total Points: 395
Total Questions: 114
Total Answers: 89

Location: Jordan
Member since Thu, Aug 5, 2021
3 Years ago
;