This exists, just use https://github.com/sigoden/aichat with local ollama and a model like qwen2.5-coder:7b or better (e.g. gemma3:12b).
Add this to ~/.bashrc :
# bind Alt-e on the command line to replace text with command
_aichat_bash() {
if [[ -n "$READLINE_LINE" ]]; then
READLINE_LINE=$(aichat -e "$READLINE_LINE")
READLINE_POINT=${#READLINE_LINE}
fi
}
bind -x '"\ee": _aichat_bash'
But if you don't like that you can press Ctrl-Shift-_ (bash has emacs keybindings) to undo and try something else. You can also put a # mark in front and hit enter, then up arrow then Alt-e so you know what created the command.
These are easy mode arrays, with size and offset known at compile time. Receiving x as an int* parameter to a function, with no way to know its length automatically, would be more realistic.
The main reasons I'm trying to switch are: better scrollback support, and better mouse support (both for tmux itself and for pass-through to terminal applications). Having used GNU Screen for 32 years, it's difficult for me to even think about what keys I'm hitting, it's below the level of conscious recognition at this point.
The site doesn't scroll at all on Firefox(X11) with ublock and umatrix, even when the non-tracking sites are enabled. In Brave browser it somewhat works in a janky way, but given that the site apparently brings a 24-core threadripper with 128GB RAM to it's knees, it certainly doesn't inspire confidence in the product, which otherwise looks pretty good.
Steve Mann resolved this notational dilemma by using the term "crown", as in binary = crown 1, octal = crown 7, decimal = crown 9, hex = crown F, and so on.
1. Spermidine found to increase lifespan and fertility in mice.
2. Spermidine levels not found to increase in blood or certain tissues when fed to mice.
3. Therefore, 1 is wrong.
Finding 2 in no way disproves 1. Facts which could be consistent with both 1 and 2 being true:
- spermidine metabolites are responsible for benefits
- while spermidine levels are maintained, excess spermidine is used beneficially
- experimenters in 2 simply haven't looked in the right tissues
And so on. TFA says there were observed phenotypic improvements (follicular health, oocyte number and quality), which categorically trump 2's failure to observe increase in spermidine levels. And none of this says anything directly about spermidine's effects in humans
I’ve watched a lot of Stanfield’s videos. Over time I came to realize that his whole image is built on being “the critic” and tempering optimism around these treatments. Except for his own personal research, which he’d like you to help fund :)
At the end of the day, “the critic” is a valuable job. Someone has to do it. Not sure it is really helping progress the industry though. I think it would be better for him to leave this to the lawyers tho.
Add this to ~/.bashrc :
In the example you gave i get: But if you don't like that you can press Ctrl-Shift-_ (bash has emacs keybindings) to undo and try something else. You can also put a # mark in front and hit enter, then up arrow then Alt-e so you know what created the command.