For these types of repetitive work tasks I create a profile in the Terminal and put the kind of code you are talking about in a custom Terminal profile which I just mouse-select and go.
That is why I do not use a lot if aliases, because I use macOS Terminal profiles imstead..
.
To customize macOS Terminal profiles, follow these steps:
Open Terminal.
Go to Terminal > Preferences, or use the keyboard shortcut "Command +,".
In the Preferences window, go to the Profiles tab.
In the left-hand pane, you will see a list of profiles. Select the one you want to customize.
In the right-hand pane, you will see various options for customizing the selected profile. You can change the text and background colors, set the default size and position of the window, and select a different font.
You can also customize the behavior of the terminal by going to the Settings tab. Here, you can set the terminal to launch with a specific command, or specify the shell that should be used.
Once you have made your changes, click the "Default" button to set the selected profile as the default, or click the "Save" button to save your changes and keep the current default profile unchanged.
I hope that helps! Let me know if you have any other questions.
As an AI, I do not have personal experience using macOS or any apps or extensions on it. However, there are many paid extensions available for macOS that offer additional functionality or features beyond what is provided by the operating system or the app itself. Some examples of paid extensions for macOS include productivity tools, creative software, and utility apps. It's always a good idea to do your research and carefully consider whether the cost of a paid extension is justified by the value it provides.