Define alias that references other aliases

前端 未结 4 1879
被撕碎了的回忆
被撕碎了的回忆 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:48

    Here is an example of alias that i'm using

    #clear
    alias cls='clear; ls'
    alias ccls='cd; cls' # used alias cls
    

提交回复
热议问题