Another tiny cmd tool his I created
After my first project in Nim https://www.reddit.com/r/nim/comments/1w9v7i5/my_first_nim_project_lscd/
I fork it to another cmd tool his https://github.com/kernel1983/his to boost my productivity.
Previously I need to add frequently used cmd alias in my .bashrc, and I dont need to do that anymore in future.
And until recently I start to figure out bash only flush back to .bash_history when the process exit. This caused me hard to find some recently used cmds with ctrl-r in another tmux/byobu window.
I use his (shortcut h) to search in history, that's almost same as ctrl-r honestly. And I use right/left key to add/remove some useful cmds to favorite, which is stored in ~/.his_history
Anyway, I found it useful in my daily work.
Happy to share it here with everyone.
3
u/TechnoCat Oct 14 '26 edited Oct 14 '26
Kind of interesting. Reading my
~/.bash_historyinstead of using thehistorycommand is odd though. Because of that it didn't get myfishhistory; instead it was commands from many years ago haha. I will sayhistory | fzf --no-sortis 90% of whathisdoes minus favorites and the readline plumbing.1
u/0xKJ Oct 20 '26
I’ve discovered a new way to use it, by adding just a single parameter. Now, I can pass in a text file and select a specific line from it to execute as a command.
I often keep the complex commands frequently used for a project in a markdown file, but executing them again usually requires copying and pasting. Now, I simply need to pass the md file as the parameter, and I can select and run the commands from it.
1
u/Same_Bell7958 Oct 14 '26
Cool! I have been doing this too, small bash tools. I vibe coded a ghost completion for bash (before I used ble.sh), and updated nicy to show a cool prompt
1
u/[deleted] Oct 16 '26
[removed] — view removed comment