2 years ago

#53035

test-img

br1ttle

How to create a custom tilde-like expansion

There is a folder e that I like to frequent. It is nested in /a/b/c/d/e. I was wondering if there was a way to create an alias for the folder e the same way the shell has created an alias for tilde (~).

By assigning the imagined alias @@ to /a/b/c/d/e, I would be able to use this in commands such as rm @@/testfile.

Any help is welcomed.

shell

environment-variables

alias

0 Answers

Your Answer

Accepted video resources