I'm trying to write a script, and failing pretty miserably
My script looks like this (I wish it could be jira open not jira_open btw):
jira_open () {
autoload -Uz vcs_info
precmd () { vcs_info }
setopt prompt_subst
open -a "Google Chrome" "jira.corp.asdf.com/browse/$vcs_info_msg_0_"
}
Chrome is trying to open the argument as a file, and it's saying the file doesn't exist
Please help