Live data from Hacker News

A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

z3ugma.github.io

1–10 of 12 posts

Re: A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

#2
Nice ideas! I've been using the `?` shortcut in atuin [0] which accomplishes the same sort of thing, but these days also has access to an Agent-like experience which allows me to prompt something like "Conventional Commit message for unstaged changes" and it will call `git diff` (after asking permission, of course) and then generate the commit message.

[0] https://atuin.sh

Re: A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

#4
I have something similar, but it's a shell command which writes the command into a file then runs `print -z "$(cat /tmp/command.txt)"`, which prints the command directly to the command line input, so there's no copy paste step needed, it's just ready for me to hit enter (or adjust as needed). It's been wonderful!

Re: A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

#5
post #2

Nice ideas! I've been using the `?` shortcut in atuin [0] which accomplishes the same sort of thing, but these days also has access to an Agent-like experience which allows me to prompt something like "Conventional Commit message for unstaged changes" and it will call `git diff` (after asking permission, of course) and then generate the commit message. [0] https://atuin.sh

Can you use any API like openai or openrouter with atuin?

Re: A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

#7
post #5
post #2

Nice ideas! I've been using the `?` shortcut in atuin [0] which accomplishes the same sort of thing, but these days also has access to an Agent-like experience which allows me to prompt something like "Conventional Commit message for unstaged changes" and it will call `git diff` (after asking permission, of course) and then generate the commit message. [0] https://atuin.sh

Can you use any API like openai or openrouter with atuin?

Not currently, but we've been discussing how best to implement BYOK and BYOM setups
Post reply on HN