3

I.e., if I'd like to alias both proxychains & prch to proxychains4, is there something equivalent to this?:

alias prch='proxychains'='proxychains4'

1 Answer 1

6

You can add multiple aliases in one command:

alias prch=proxychains4 proxychains=proxychains4

And, since alias is just a regular command, you can use all shell features with it, including brace expansion. For example, the syntax x{A,B,C}y would expand to three separate arguments xAy xBy xCy.

So if you combine these two together:

alias {prch,proxychains}=proxychains4
1
  • $ echo alias {prch,proxychains}=proxychains4 returns alias prch=proxychains4 proxychains=proxychains4. Thank you. Mar 1, 2014 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.