alias navigate="ro_client navigate" #idea alias i='idea `pwd`' #rubymine alias r='rubymine `pwd`' alias libspec="ro shortcuts lib_spec" alias rbm="rubymine" function cd_path() { echo "opening $1" cd "$1" } function rubymine_open_path() { cd_path "$1" rubymine . } function idea_open_path() { cd_path "$1" idea . } cdir () { path=`ro_client navigate get_dir $1` cd_path "$path" } odir () { cdir $1 rubymine . } # cd to project path cpj () { path=`ro_client navigate get_project $1` cd_path "$path" } pj () { cpj $1 rubymine . } cjpj () { path=`ro_client navigate get_project $1 java` echo "cd $path" cd "$path" } jpj () { path=`ro_client navigate get_project $1 java` idea_open_path "$path" } function csub() { path=`navigate get_submodule $1` cd_path $path } function sub() { csub $1 rubymine . } function roadmap() { path=`navigate get_roadmap $1` rubymine_open_path "$path" } alias rco="ro shortcuts open_ro_commands" alias rsu="ro shortcuts open_ro_support"