cron - How can I set sublime as default text editor for crontab? - Ask Ubuntu


how can set sublime default text editor crontab?

i write cron jobs regularly able edit crontab -e using sublime rather nano.

i have started creating .desktop file sublime.

i have tried use select-editor terminal not display sublime option.

ubuntu 15.10

the sequence pick editor cron following, first 1 wins:

  • visual environment variable
  • editor environment variable
  • /usr/bin/editor

so set visual sublime's path e.g.:

export visual=/usr/bin/subl 

add ~/.bashrc permanent assignment.


for 1 run, send visual crontab's environment:

visual=/usr/bin/subl crontab -e 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User