Suggest shell aliases from my command history

Finds the commands I repeat most in a pasted shell history and suggests at most ten aliases or functions, each with a safety note.

Task: Find the commands and command patterns I repeat most in the shell history below and suggest an alias or function for each. Context: My shell is [shell name] on [operating system]. Remove any token, password or key from the history before pasting it. If you still see one, tell me to rotate it and ignore it. Rules: - Read each command fully before judging whether it repeats. - Suggest at most ten aliases or functions, ranked by how often the pattern appears. - Before suggesting a destructive command (delete, force push, reset, drop), explain what it does and add a confirmation step to the alias. - Use my shell's syntax, and ask me one question if the shell is unclear. Result: A table with the columns pattern, times seen, suggested name and definition, and safety note. Close with one sentence on where to put the definitions. Material: [paste your shell history here]

Updated