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