#(Solved) Warp application command line arguments

5 messages · Page 1 of 1 (latest)

timid obsidian
#

How can I launch warp from /bin/zsh with arguments for warp to open in a specified directory? Something like:

open -b "dev.warp.Warp-Stable" --args "/path/i/want/to/open"
crimson birchBOT
#

Hi @timid obsidian. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the knowledge sources, it seems that Warp currently does not support passing command-line arguments to open in a specific directory. However, there are some workarounds suggested by users in the community.

For Mac users, you can use the following function:

openwarp(){
    open "warp://action/new_tab?path=$(pwd)" &
}

This function opens a new tab in Warp at the current directory. You can add this function to your shell profile (like .bashrc or .zshrc) and use the openwarp command to open Warp in the current directory.

Another user suggested a similar function:

openwarp(){
   nohup warp-terminal warp://action/new_tab?path=$(pwd) &
}

This function also opens a new tab in Warp at the current directory.

Please note that these functions use Warp's URI scheme to open a new tab at a specific path. You can learn more about Warp's URI scheme here (https://docs.warp.dev/features/uri-scheme).

However, these workarounds might not work as expected if Warp is already running. There is a feature request to improve this behavior, but it has not been implemented yet.

Sources:


Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@timid obsidian kapa.ai is still learning and improving, please let us know how it did by reacting below

timid obsidian
#

good bot thanks