osx - How to define two aliases for one command in one statement -
i know how configure aliases in bash, there way map alias 2 possible shortcuts in 1 statement?
here 2 line version
alias "gac"="git add . && git commit -am " alias "gitac"="git add . && git commit -am "
i imagine solution, if possible, this:
pseudo code: alias "alias1 || alias2"="command"
is possible aliases or have use function , if how?
$ alias {gac,gitac}="git add . && git commit -am " $ alias gac alias gac='git add . && git commit -am ' $ alias gitac alias gitac='git add . && git commit -am '
Comments
Post a Comment