I've been using this for about a year now - I parsed 6 months of my messages on slack and found the most common phrases I use and generated keyboard shortcuts for them.
> 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
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.
Comments (313) 91 threads
Show all comments
Showing thread 17 of 91
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
https://github.com/atuinsh/atuin
*: shameless plug, I’m one of the maintainers
Ps. one of the links in the docs is dead, "see the supported shells" on the page https://atuin.sh/docs/commands/shell-completions
Continue this thread — 1 reply
cm = git commit -m st = git status inst = sudo apt get install -y fucking = sudo
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.