I used 'change directory' in my shell script (bash)
alias mycd='cd some_place'
You need to source the file as:
Without sourcing the changes will happen in the sub-shell and not in the parent shell which is invoking the script. But when you source a file the lines in the file are executed as if they were typed at the command line.