B
B
Balon4ik2014-01-05 14:04:44
ubuntu
Balon4ik, 2014-01-05 14:04:44

Why does an unconfigured SublimeTest run through the terminal?

Hello!
Today I met with such a problem - I have an OS - Ubuntu 13.10 I work in the sublime text3 graphical editor. Also a lot of work in ubuntu terminal. And here's the problem: when I open sublime text through the terminal (~$ subl) - everything is fine, but when I do the same thing, only as root (sudo subl), then some obscure version of this editor opens (without installed packages). I checked in /usr/bin/subl - everything is correct there, namely:
#!/bin/sh
exec /opt/sublime_text/sublime_text "[email protected]"
Tell me, what's the problem?
PS Tell me - is it just me that has this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
avalak, 2014-01-05
@Balon4ik

1. it's better to replace subl with alias
> PS tell me - is it just me who has this problem?
2. This is not a problem. So intentional.
In general, it is assumed that you need to edit the file sudo -e /path/to/file
. The editor is installed via SUDO_EDITOR VISUAL EDITOR (man sudo describes in more detail how this happens).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question