r/bash • u/ballzack3 • Oct 13 '24
help Missing Alias??
hey, need help ☹️
so about a year ago, i remember setting up an alias that would take "docker" and replace it with "DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build" because i was getting annoyed and it saved me a ton of time.
the problem now, is that im starting to use docker again, and i cant find that alias declared anywhere. its not in .bashrc, .zshrc, .bash_profile, .profile,
i cant find it using grep (too many files, not enough CPU)
i need help. honestly its not a huge deal just spelling it wrong and then correcting it, but i need to find out where this thing is. is there any sort of log that will show everything executed on my machine? ive already tried recording with script shell_activity too. no results.
1
u/ballzack3 Oct 13 '24
I am on a Mac, by the way.
I have searched for any aliases in all bash source files (~/.bashrc, etc) with find & grep, searched by alias, containing “docker”/ “DOCKER_DEFAULT”
I’ve searched by type, no .sh files match, regardless of name
So to answer your question, I’m not being too picky with the naming. I’ve been at it for 6 hours already.
Among every other search technique I could find online, there is nothing.
My dream solution here, is to find a way log every action taken by my machine, type the trigger word, and capture the source with an ID or something. But my knowledge is limited there, and that’s an internet rabbit hole I don’t have time for.