Le lundi 12 août 2024, 21:05:17 UTC Richard Lewis a écrit :
> Bastien Roucariès <ro...@debian.org> writes:
> 
> >> b) but if im in a terminal (even if running in gnome) then i want a
> >>  terminal-based editor (based on what i installed)
> >
> > depends for me I prefer to run under emacsclient so you could do
> > something like
> > SENSIBLE_EDITOR='if [ -t 0 ]; then sensible-editor-GNOME ; else
> > sensible-editor-tty; fi;'
> 
> Couldnt i already put that it in ~/bin/editor and set
> EDITOR to that script?
Yes but it does not change the need that the editor called should block and be 
more like ex or vi

BTW it is better on debian system to set both EDITOR and SENSIBLE_EDITOR to 
~/bin/editor  in this case

Bastien
> 
> 
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to