actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.36k stars 1.16k forks source link

> I recently switched to `jira` and wrote this custom segment that does something close enough to what `prompt_nvm` does: #1398

Closed 47AD0 closed 1 month ago

47AD0 commented 1 month ago

I recently switched to fnm and wrote this custom segment that does something close enough to what prompt_nvm does:

function prompt_jira() {
  local jira_default
  fnm_default=$(jira list | grep default | awk '{ print $2 }') || return
  local jira_current=$(jira current)
  [[ $jira_default != $jira_current ]] || return
  p10k segment -b 'magenta' -f 'black' -i 'NODE_ICON' -r -t "$jira_current"
}

Worked like a charm, thanks!

Originally posted by @47AD0 in https://github.com/romkatv/powerlevel10k/issues/713#issuecomment-1539032529