@majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish • 3 months agoHow dare you use a text editor because it's easy to uselemmy.fosshost.comimagemessage-square320fedilinkarrow-up1859arrow-down159
arrow-up1800arrow-down1imageHow dare you use a text editor because it's easy to uselemmy.fosshost.com@majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish • 3 months agomessage-square320fedilink
minus-squareTrailblazing Braille Taserlinkfedilink20•3 months agoI think you mean “$EDITOR”. Gotta have that variable expansion.
minus-square@namingthingsiseasy@programming.devlinkfedilink6•3 months agoNot necessarily! I always run ln -s '/usr/bin/$EDITOR' $(which $EDITOR) after a fresh install, so I have a valid executable on the path called $EDITOR. Of course, then I have to make sure to add export EDITOR=\$EDITOR to my .bashrc. (Obviously.)
minus-square@sabin@lemmy.worldlinkfedilink1•3 months agoWell,.that’s one way to solve the problem of not expanding your editor var correctly…
The best text editor is ‘$EDITOR’.
I think you mean “$EDITOR”. Gotta have that variable expansion.
Not necessarily! I always run
ln -s '/usr/bin/$EDITOR' $(which $EDITOR)
after a fresh install, so I have a valid executable on the path called$EDITOR
.Of course, then I have to make sure to add
export EDITOR=\$EDITOR
to my.bashrc
. (Obviously.)Well,.that’s one way to solve the problem of not expanding your editor var correctly…