perforce

Perforce changing the default editor


I use perforce for my revision control, when I hit 'p4 change' it always opens up the list on emacs, and we all know the pain of deleting text in it. How do i change it to gedit or vim or anything else? My default text editor is gedit.


Solution

  • On the command line, set P4EDITOR either as an environment variable or in the P4CONFIG file.