Porting alias functionality to subshells / external subshells (ex. Docker, K8s, etc.) — not perfect, but a solution.

Krzysztof Owczarek
3 min readMay 16, 2024

--

Aliases or bash functions are mostly useful for frequently used commands, that are far too long or complicated to type in every time we need to execute them.

They work perfectly well locally, but are not very useful for the (external) subshells, which are quite popular in the contenerized world and in the cloud.

Recently, I have tried to find out how I could utilize aliases remotely and save myself the trouble of copy-pasting long commands from the text file over and over again or worse. Type them in every time I need to 😨

The solution with a big disadvantage — Warp Terminal (state for: 12th May 2024)

Some of you probably know Warp Terminal already, as it is available on the market for a noticable period of time now.

It is advertised as a next-gen terminal and they kind of deliver their promises, compared to the well known, classic terminals like iTerm, at least at their vanilla flavoured form.

… those of you, who already know Warp, probably also know what the big disadvantage is,

… for those of you who have never checked it out, here is a very quick one-liner summary to save you the trouble:

🟥 Warp Terminal requires you to log in to use it. 🟥

A terminal. Requires. Logging in.
Nobody likes it, but they keep doing it - why?There are multiple opinions on that matter.

Nevertheless. For those of you, who are still curious…

Among all features that Warp Terminal offers, there is one called workflowshere you can find more about creating them yourself.

Long story short, you can define special sets of (parametrized) commands in .yaml files, stored locally in a special directory.

Workflows are easily searchable and quickly accessible through the Warp Terminal.

How is it different from having aliases defined in my local .rc file?

Warp Terminal allows you to warpify any bash subshell that has been opened in their terminal.

and some warpifying… 🪄

Quick search and workflow execution

Right now you can easily use any of the built-in workflows, as well as the ones you create yourself.

You can open a quicksearch for workflows by using a keyboard shortcut (shift+control+r on mac) and find any workflow you need.

Workflows on the screenshot are default workflows available in the Warp Terminal.

Do you have other solution for the problem?

Please share!

Important disclaimer

I am not connected to the company behind Warp Terminal in any way — it just happens to be a tool with a potential solution to the problem.

Given Warp Terminal log in policy — you have to make the decision about using it yourself.

--

--

No responses yet