make ailias  function on Mac

2018年4月13日 Off By ryosuke-hujisawa

 

more with automation. more efficiently. more logically. more efficiently. even little by little.

make ailias  on Mac

 vi ~/.bash_profile

Shell script to access mamp’s db

function mampdb() {
  cd "/Applications/MAMP/Library/bin/"
  ./mysql -u root -p
}

Update and use it

 source ~/.bash_profile

reference

[urlpreviewbox url=”https://stackoverflow.com/questions/16764682/passing-alias-as-function-argument-linux-bash”/]

[urlpreviewbox url=”https://stackoverflow.com/questions/16764682/passing-alias-as-function-argument-linux-bash”/]