LinearArray to Programmer HumorEnglish · 9 months agoMy wife was unimpressed by Vimimagemessage-square184fedilinkarrow-up1966arrow-down119
arrow-up1947arrow-down1imageMy wife was unimpressed by VimLinearArray to Programmer HumorEnglish · 9 months agomessage-square184fedilink
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up4·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-squarelil@lemy.lollinkfedilinkarrow-up2·9 months agoI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up3arrow-down1·edit-29 months agoThat would be too smart. Smells like kotlin’s when
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·9 months agoPut backticks around the entire case statement, and you can.
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.