Suggestion: change executable name to `pj`

It took only like 3 minutes of pijuling before defining that pj alias in my terminal :sweat_smile:

1 Like

Thanks for your suggestion.
This is my current basic setup:

p() {
  if [ $# -gt 0 ]; then
    case "$1" in
    s | st*)
      cmd="status"
      ;;
    r | rec*)
      cmd="record"
      ;;
    l)
      cmd="log"
      ;;
    u | urec* | unrec*)
      cmd="unrecord"
      ;;
    rs | res*)
      cmd="reset"
      ;;
    d)
      cmd="diff"
      ;;
    a)
      cmd="add"
      ;;
    ph)
      cmd="push"
      ;;
    pl)
      cmd="pull"
      ;;
    f)
      cmd="fork"
      ;;
    cl)
      cmd="channel"
      ;;
    c)
      cmd="change"
      ;;
    ls)
      cmd="list"
      ;;
    id)
      cmd="identity"
      ;;
    *)
      cmd="$1"
      ;;
    esac
    shift
    pijul "$cmd" "${@:1}"
  else
    pijul "${@}"
  fi
}

This of your approach add flexibility to alias any subcommand, which is better than jorsn / pj IMO.

By the way, even pj is too many keystrokes, I just name the function as p.