You already have commands saved somewhere. Let's move them to recall.
Create a file my-commands.sh with comments as names:
my-commands.sh
# git-log
# tags: git
git log --oneline -10
# docker-node
# tags: docker,node
docker run -it --rm -v $(pwd):/app node:20 bash
recall import my-commands.sh
✔ Imported: git-log
✔ Imported: docker-node
2 imported 0 skipped 0 failed
[
{ "command": "git log --oneline -10", "name": "git-log", "tags": ["git"] },
{ "command": "docker ps -a", "name": "docker-ps", "tags": ["docker"] }
]
recall import commands.json
# Your .bashrc might have:
alias gs='git status'
alias glog='git log --oneline -10'
recall save "git status" --name git-status --tags git
recall alias set gs git-status
# Now "recall run gs" works just like your old alias
# Just ran a useful command? Save it immediately.
recall save "kubectl get pods --all-namespaces" --name kube-pods --tags k8s
After a week of natural use, you'll have your most valuable commands saved.
recall export --format json --output backup.json
recall export --format sh --output backup.sh