I've set an editor as default, how do I call it to open files in a shell?
Posted
by
iight
on Super User
See other posts from Super User
or by iight
Published on 2012-09-14T00:02:41Z
Indexed on
2012/09/24
15:40 UTC
Read the original article
Hit count: 395
EDIT I thought of a better way to phrase the question.
How can I find the alias that Ubuntu is using for a different text editor? Rather than using nano by typing nano file.txt
, i'd like to be able to type sublime file.txt
to open sublime editor. I don't know where to look to find these aliases.
sudo update-alternatives --config editor
does not show it as a choice, I only see the 'default' editors, like Nano and vim.tiny.
© Super User or respective owner