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 variableeditor
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
Post a Comment