Quantcast
Channel: Opening default text editor in Bash? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by JimmyLandStudios for Opening default text editor in Bash?

note: xdg-open file.xml will open in a Web-Browser, most likely.So, try; # select your default sensible-editor from all installed editors, or not. select-editor # Open Default Text Editor...

View Article



Answer by Nicholas Wilson for Opening default text editor in Bash?

Ignacio's right (though arguably, the fallback should be ed, which POSIX requires to be present, although it's essentially only useful to old-timers).If you're thinking about graphical editors,...

View Article

Answer by Ignacio Vazquez-Abrams for Opening default text editor in Bash?

The user's chosen editor should be in $EDITOR, but you must still choose a sane default."${EDITOR:-vi}" file.txt

View Article

Opening default text editor in Bash?

I was writing a shell script and ran into a problem: Is there a way to open a file using the user's specified text editor?

View Article
Browsing all 4 articles
Browse latest View live


Latest Images