optimise bashrc and add gradle filetye for vim
bug fix for script function