NireBryce

reality is the battlefield

the first line goes in Cohost embeds

🐥 I am not embroiled in any legal battle
🐦 other than battles that are legal 🎮

I speak to the universe and it speaks back, in it's own way.

mastodon

email: contact at breadthcharge dot net

I live on the northeast coast of the US.

'non-functional programmer'. 'far left'.

conceptual midwife.

https://cohost.org/NireBryce/post/4929459-here-s-my-five-minut

If you can see the "show contact info" dropdown below, I follow you. If you want me to, ask and I'll think about it.


today I was reminded of this so you get to be too

https://github.com/csurfer/tmuxrepl

# in tmuxrepl.plugin.zsh:
# Initializes a new window with the tmuxrepl setup.
function tmuxrepl () {
    tmux new-window && tmux split-window -v -p 10 && tmux send-keys -t bottom "_tmuxrepl_init" C-m
}

# Tmux REPL loop which takes full advantage of your zsh settings.
function _tmuxrepl_init () {
    while true; do
        local cmd
        vared -p ">> " cmd
        ([[ "$cmd" =~ ^cd ]] || [[ "$cmd" =~ \\.$ ]]) && eval "$cmd"
        tmux send-keys -t top "$cmd" C-m
        unset cmd
    done
}

You must log in to comment.

in reply to @NireBryce's post:

i forget how to do it but there's a zsh setting blob that will put the command line at the top and reverse the direction of the terminal scrollback

tomorrow I'll see if i can find it by bisection searching my .zshrc git commits, I know I had it commented out there somewhere in 2022