majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 1 年前How dare you use a text editor because it's easy to uselemmy.fosshost.comimagemessage-square325fedilinkarrow-up1813arrow-down155
arrow-up1758arrow-down1imageHow dare you use a text editor because it's easy to uselemmy.fosshost.commajestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 1 年前message-square325fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up20·1 年前I think you mean “$EDITOR”. Gotta have that variable expansion.
minus-squarenamingthingsiseasy@programming.devlinkfedilinkarrow-up6·1 年前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.)
minus-squaresabin@lemmy.worldlinkfedilinkarrow-up1·1 年前Well,.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=\$EDITORto my.bashrc. (Obviously.)Well,.that’s one way to solve the problem of not expanding your editor var correctly…