LinearArray to Programmer Humor@programming.devEnglish • 3 months agoMy wife was unimpressed by Vimprogramming.devimagemessage-square186fedilinkarrow-up1962arrow-down119
arrow-up1943arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray to Programmer Humor@programming.devEnglish • 3 months agomessage-square186fedilink
minus-square@ryannathans@aussie.zonelinkfedilink4•edit-23 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@lil@lemy.lollinkfedilink2•3 months agoI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-square@SpaceNoodle@lemmy.worldlinkfedilink2•3 months agoPut backticks around the entire case statement, and you can.
minus-square@ryannathans@aussie.zonelinkfedilink2•edit-23 months agoThat would be too smart. Smells like kotlin’s when
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 ;;
Put backticks around the entire case statement, and you can.
That would be too smart. Smells like kotlin’s when