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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -