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.
Solution:Jump to 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:
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....5 Replies
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
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:
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.Just tested your solution with
bash -c "fastfetch && rpm-ostree status && bash"
I would have never guessed that 🙂 Works perfectlyYea, 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.Thanks everyone! I appreciate the help. I had tried && between commands but never thought bash -c would work. Thank you!