Create a custom tool for p4v to spawn Rubymine on a directory straight out of p4v
Create a new script: mkdir -p ~/bin/generic/run-rubymine-as-a-tool.sh vim ~/bin/generic/run-rubymine-as-a-tool.sh #!/bin/bash if echo "${1}" | grep -q '...$'; then DIR="`dirname ${1}`" else DIR=${1} fi exec ${HOME}/bin/RubyMine/bin/rubymine.sh "${DIR}" chmod 0754 ~/bin/generic/run-rubymine-as-a-tool.sh Under p4v: Tools -> Manage Custom Tools -> New Tool Name: Rubymine Select: Add to application context menus Application: ~/bin/generic/run-rubymine-as-a-tool.sh Arguments: %d