LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 5 个月前My wife was unimpressed by Vimprogramming.devimagemessage-square182fedilinkarrow-up1951arrow-down119
arrow-up1932arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 5 个月前message-square182fedilink
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up4·edit-25 个月前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 ;;
minus-squarelil@lemy.lollinkfedilinkarrow-up2·5 个月前I guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·5 个月前Put backticks around the entire case statement, and you can.
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up3arrow-down1·edit-25 个月前That 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