vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.28k stars 3.52k forks source link

Execute command on startup (-e) #3780

Open oliversturm opened 5 years ago

oliversturm commented 5 years ago

Issue

I have checked the source code - clearly there is no support at this time for typical terminal command line options. I'm mainly interested in -e to execute a command on startup. This is supported by any terminal I've ever used on Linux... probably elsewhere.

For instance, in a startup script for the i3 window manager, I use this (which is currently quite impossible with hyper):

urxvt -name shell_s2_c_ranger -e python ~/git/ranger/ranger.py &

I'd be willing to submit a pull request for the feature. Would this be accepted? Am I missing something?

bet4it commented 5 years ago

May relate with #3141

oliversturm commented 5 years ago

I think you're right. Of course there might be a different set of expected default parameters for each platform. Plus, that issue is a year old - so nobody is looking into this, correct?

bet4it commented 5 years ago

At least I am :smile:

oliversturm commented 5 years ago

Cool - let me know if there's anything for me to check out.

xavierrobitaille commented 4 years ago

Did anyone try the hyper-startup plugin recently? It's "an extension for Hyper, which executes commands when Hyper launches". I can't get it to work, though... I am using other plugins (eg. hyperlayout), so I don't think my .hyper.js file is broken or anything. Would love to hear if other people recently got it to work.

bet4it commented 4 years ago

@xavierrobitaille Try hyper-init.

xavierrobitaille commented 4 years ago

works like a charm! thank you @bet4it

Ortega-Dan commented 1 year ago

Looks like hiper-init works for a preconfigured command, but not to trigger it with any command wanted, which is what -e flag does in all (or almost all) other terminals in Unix/Linux. This would be a great feature.

jbriales commented 2 months ago

so it seems this is still not implemented? Any major challenge to have this?