LinearArray to Programmer [email protected]English • 7 months agoMy wife was unimpressed by Vimprogramming.devimagemessage-square179fedilinkarrow-up1945arrow-down119
arrow-up1926arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray to Programmer [email protected]English • 7 months agomessage-square179fedilink
minus-square@[email protected]linkfedilink4•edit-27 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•7 months agoI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-square@[email protected]linkfedilink2•edit-27 months agoThat would be too smart. Smells like kotlin’s when
minus-square@SpaceNoodlelink2•7 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.