9

I used this answer to change the editor used with quickly and it worked, however now,when I type quickly edit the command line stays on the open and does not allow me to enter other commands as long as Sublime Text 2 is open. I realise this is a daft question, but I can't seem to find a way to get around it.

boywithaxe
  • 2,130

2 Answers2

8

Set the EDITOR environment variable to sublime and then quickly edit will use it:

export EDITOR=/usr/bin/subl

Just add the above line to your ~/.bashrc file

mhall119
  • 5,037
1

It does this because gedit is programmed to do that when you run it from the command line. You can make quickly do that with other editors by using quickly edit &.

Edit: I wrote a Perl script that will run the editor as a as a child of init so when you close the terminal the editor will remain open: script

You can set the following vaiables at the top of the script:

  • command: the command to be run
  • stdout: The standard output to be passed to the command (must be set or it will still output to terminal)
  • stderr: The standard output to be passed to the command (must be set or it will still output to terminal)