.bash profile - Custom terminal command using bash_profile -


i trying make new command runs shell script takes in arguments.

so, have command in .bash_profile:

command() {   /users/myname/filepath/myscript.sh } 

but myscript.sh can take in arguments. how can modify code handle arguments pass arguments myscript.h?

i think you're looking bash alias:

alias mycommand="/users/myname/filepath/myscript.sh $@" 

Comments