In Ptyxis, can you have more than one "custom command" ?

I would like to have 2 commands but I am not sure what I would need to input to allow that.
No description
Solution:
I haven't used this myself and I'm not sure if there's any downside of doing it like this but I threw some things at it and I think this does what you want:
bash -c "command1 && command2 && bash"
bash -c "command1 && command2 && bash"
Change out bash for the shell program you want. If you change the first bash to some other shell you might have to change the &&'s to something appropriate for that shell....
Jump to solution
5 Replies
wolfyreload
wolfyreload•6mo ago
I cannot get one custom command working, let alone multiple by filling in anything in the editor. Had a look at the source code for ptyxis and that didn't help either, sorry.
Solution
Jee
Jee•6mo ago
I haven't used this myself and I'm not sure if there's any downside of doing it like this but I threw some things at it and I think this does what you want:
bash -c "command1 && command2 && bash"
bash -c "command1 && command2 && bash"
Change out bash for the shell program you want. If you change the first bash to some other shell you might have to change the &&'s to something appropriate for that shell.
wolfyreload
wolfyreload•6mo ago
Just tested your solution with bash -c "fastfetch && rpm-ostree status && bash" I would have never guessed that 🙂 Works perfectly
Jee
Jee•6mo ago
Yea, tried stuff without bash -c but got nothing or it complained it wasn't a valid option. It seemed pretty adamant about it just accepting one command. "How about a command with multiple commands in it?" 🤔 Also have to add the shell at the end otherwise it just exits. I assume it's intended to be used when you want to start the shell with some option like fish --no-config for example.
Ravenesque
RavenesqueOP•6mo ago
Thanks everyone! I appreciate the help. I had tried && between commands but never thought bash -c would work. Thank you!
Want results from more Discord servers?
Add your server