Define alias that references other aliases

前端 未结 4 1932
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 17:53

I\'d need to be able to define an alias in a Debian shell that includes other aliases, for a project I\'m currently working on.

Let\'s look at a code example to make thi

4条回答
  •  耶瑟儿~
    2021-02-05 18:56

    To reuse alias in another alias use:

    foobar='foo;bar'
    

    However I would suggest you to consider using shell function to get better control over this.

提交回复
热议问题