warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.55k stars 379 forks source link

Add command when starting Warp terminal #3453

Open KaramJaber99 opened 1 year ago

KaramJaber99 commented 1 year ago

Discord username (optional)

No response

Describe the solution you'd like?

Hi,
Can you please add a option in the setting to run a command on the start of the terminal.

Is your feature request related to a problem? Please describe.

I want to load all my bashrc and other stuff at every tab or start of the new terminal.
I do that by running one command, if you can do that the command runs automatically when I start the terminal I will be happy,
Thanks

Additional context

No response

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

KaramJaber99 commented 1 year ago

like send a text at start in iterm

warpdotdev-devx[bot] commented 1 year ago

Hi @KaramJaber99, Thanks for this feature request! As far as I know, if you have bash set as your default shell, Warp automatically loads the .bashrc file. So as a workaround to this feature, if you put a script to run in the rc file it should run automatically at the start of every Warp session (new window/tab/pane).

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

Hotdog-111 commented 1 year ago

I am using zsh as my script and when I try to edit the .zshrc file, warp closes the window after 6 seconds. The command I'm trying to run is exec zsh as warp doesn't seem to want to startup powerlevel10k theme until I restart it.

jkarstens commented 4 months ago

This would be great to have for other integrations where I'd like to open a terminal with a startup command, but only in that integration (not as part of 'normal' terminal use).

E.g. for Vieb browser I have :set vimcommand="gnome-terminal -- /opt/nvim-linux64/bin/nvim"

Would be nice to be able to do /opt/warpdotdev/warp-terminal/warp -- /opt/nvim-linux64/bin/nvim