4 ms·
This is neat! I've thought about doing something similar with my shell history to help me figure out which shell aliases I should create.
by mtlynch 3y ago
This is neat!
I've thought about doing something similar with my shell history to help me figure out which shell aliases I should create.
- KomoD 3y ago> I've thought about doing something similar with my shell history to help me figure out which shell aliases I should create. Same here, I end up doing `h | grep "(something about the command)` a lot to get commands with specific options, etc. and think "damn i should really make an alias for this" every single time, but never get around to it
- yorwba 3y agoHow about fzf? https://github.com/junegunn/fzf https://github.com/junegunn/fzf
- jll29 3y agoThere's also Flexpansion for Android (no training required): https://flexpansion.com/wp/ https://flexpansion.com/wp/
- ellieh 3y agoYou might like Atuin*! It fuzzy searches your shell history + optionally syncs it between machines https://github.com/atuinsh/atuin https://github.com/atuinsh/atuin *: shameless plug, I’m one of the maintainers
- KomoD 3y agoYeah wow, I do like that, I'll definitely use it a lot, the full-screen thing on "up" keeps taking me by surprise though Ps. one of the links in the docs is dead, "see the supported shells" on the page https://atuin.sh/docs/commands/shell-completions https://atuin.sh/docs/commands/shell-completions
- ellieh 3y agoGlad to hear it! You can disable the arrow key binding if you want, and/or make it only use part of the screen :D Fixed it - thanks for the catch!
- eschluntz 3y agoooh love it! I also have a HUGE bash aliases file, but that's all manually constructed, not automatic. some favs: cm = git commit -m st = git status inst = sudo apt get install -y fucking = sudo
- fsckboy 3y ago>figure out which shell aliases I use shell functions for this type stuff, and I have it spit out the command line it's going to run with all the args (to stderr) and then running the command, and other sorts of programmatic touchup (tell me if i'm in the wrong directory, or whatever) spitting out the command line it's going to run with all the args (to stderr) is a function too. shell functions can also do nice things like change the directory in my outside shell, set environment variables, etc.