Mac users just open /Users/(USERNAME)/.bash_profile
this file in a editor.
and add this line to add path.
export PATH="/Users/myuser/Library/Android/sdk/platform-tools":$PATH
this is the default path if you install adb via studio. and dont forget to change the username in this line.