Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 8 down vote accepted

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

share|improve this answer
1  
@borax12 It's perhaps better to add it to ~/.profile, since adding it to ~/.bashrc won't set it for login shells. –  Eliah Kagan Jul 3 '12 at 9:31
    
… or even into ~/.bash_login if it exists. –  Dmitriy Budnik Nov 9 '12 at 7:45

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)
share|improve this answer
    
That still makes the instance dependent on the terminal being open –  boywithaxe Jun 25 '12 at 15:38
1  
I wrote a script to work around that, details above. –  Sam Bickley Jun 25 '12 at 17:28
    
Thanbk you! That's great help :) –  boywithaxe Jun 25 '12 at 18:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.