LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 8 months agoMy wife was unimpressed by Vimprogramming.devimagemessage-square183fedilinkarrow-up1954arrow-down119
arrow-up1935arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 8 months agomessage-square183fedilink
minus-squareryannathanslinkfedilinkarrow-up4·edit-28 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·8 months agoI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·8 months agoPut backticks around the entire case statement, and you can.
minus-squareryannathanslinkfedilinkarrow-up3arrow-down1·edit-28 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