You are not logged in.

#1 2014-11-26 23:50:45

fennectech
Member
From: /home/fennectech/
Registered: 2014-06-04
Posts: 169

Changing default editor system level [solved]

I want to make a system wide change to the editor   all i can find is things that tell me to export EDITOR=nano  https://bbs.archlinux.org/viewtopic.php?id=108167  this is related   but the package obviously doesnt exist    anyone able to help out here   the VI editor opening constantly is rather irritating   my fav console editor is nano
i guess i should say   that im looking for a suitable alternative for this program or at least the file that stores that setting LOL

Last edited by fennectech (2014-11-27 00:09:19)


[FennecTECH@ArchOS ~]$ cat about_myself
Hello there my name is FennecTECH I am a novice arch user though I am here to learn  I live in central Minnesota where I hangout in the console and make my way into X11. Nice to meet you all! Enjoy my home directory feel free to poke around. There is a solution to every problem, so long as you do not break the laws of physics.
=^_^=
[FennecTECH@ArchOS ~]$

Offline

#2 2014-11-26 23:55:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Changing default editor system level [solved]

You export it from your shell's rc file https://wiki.archlinux.org/index.php/Ba … tion_files

Not sure what the linked thread has to do with this, or any Arch-related, issue, really...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-11-27 00:00:23

fennectech
Member
From: /home/fennectech/
Registered: 2014-06-04
Posts: 169

Re: Changing default editor system level [solved]

the thing is i  want it to be the system wide default    not exported   theres gotta be a way to set it system wide   the update-alternitives command would do the job from debian  but this is arch


[FennecTECH@ArchOS ~]$ cat about_myself
Hello there my name is FennecTECH I am a novice arch user though I am here to learn  I live in central Minnesota where I hangout in the console and make my way into X11. Nice to meet you all! Enjoy my home directory feel free to poke around. There is a solution to every problem, so long as you do not break the laws of physics.
=^_^=
[FennecTECH@ArchOS ~]$

Offline

#4 2014-11-27 00:01:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Changing default editor system level [solved]

There is, and it's mentioned in the link jasonwryan gave you.

I don't know what you mean by "not exported", how do you expect to set a variable for all subshells without exporting it?

Offline

#5 2014-11-27 00:09:02

fennectech
Member
From: /home/fennectech/
Registered: 2014-06-04
Posts: 169

Re: Changing default editor system level [solved]

OOOH i see    i though that the default ditor is set from a configuration file   not  by the shell varible    ive solved it and implimented it via /etc/bash.bashrc  ill mark it solved now :3


[FennecTECH@ArchOS ~]$ cat about_myself
Hello there my name is FennecTECH I am a novice arch user though I am here to learn  I live in central Minnesota where I hangout in the console and make my way into X11. Nice to meet you all! Enjoy my home directory feel free to poke around. There is a solution to every problem, so long as you do not break the laws of physics.
=^_^=
[FennecTECH@ArchOS ~]$

Offline

#6 2014-11-28 02:48:45

snakeroot
Member
Registered: 2012-10-06
Posts: 177

Re: Changing default editor system level [solved]

Remember to export $VISUAL as well as $EDITOR, since there may still be some programs (less/crontab?) that will use $VISUAL (likely at a really inconvenient time). I've definitely gotten bit in the butt by that one before, although the details are a bit hazy.

Offline

Board footer

Powered by FluxBB