LinearArray to Programmer [email protected]English • 9 months agoMy wife was unimpressed by Vimprogramming.devimagemessage-square177fedilinkarrow-up1946arrow-down119
arrow-up1927arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray to Programmer [email protected]English • 9 months agomessage-square177fedilink
minus-squarePureTryOutlinkfedilink26•9 months agoexport EDITOR=nano. But (neo)vim is amazing so there is no need to do that.
minus-square@SpaceNoodlelink17•9 months agoI transfer all my files over to a Windows machine and edit them in Notepad
minus-square@[email protected]linkfedilink4•edit-29 months agoBased nano user From my .zshrc (typing this on mobile so cope if it’s wrong) case "$OSTYPE" in linux*) export EDITOR=nano ;; freebsd*) export EDITOR=ee ;;
minus-square@[email protected]linkfedilink2•9 months agoI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-square@[email protected]linkfedilink2•edit-29 months agoThat would be too smart. Smells like kotlin’s when
minus-square@SpaceNoodlelink2•9 months agoPut backticks around the entire case statement, and you can.
minus-squaretiredofsametablinkfedilink2•9 months agoYou can set your default editor (maybe in .bashrc or .bash_profile? I forget), but I’m far too lazy.
alias vi=nano
export EDITOR=nano
.But (neo)vim is amazing so there is no need to do that.
I transfer all my files over to a Windows machine and edit them in Notepad
Based nano user
From my .zshrc (typing this on mobile so cope if it’s wrong)
case "$OSTYPE" in linux*) export EDITOR=nano ;; freebsd*) export EDITOR=ee ;;
I guess shell languages can’t do this:
export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
That would be too smart. Smells like kotlin’s when
Put backticks around the entire case statement, and you can.
You can set your default editor (maybe in .bashrc or .bash_profile? I forget), but I’m far too lazy.