MENU

Fun & Interesting

Learning Bash Best Practices - 02 // Shebang, Better Readability and Dynamic Scoping

The Mouseless Dev 865 3 years ago
Video Not Working? Fix It Now

What's the best shebang to use, how to make the script more readable, and the curious Bash dynamic scope. Starting script: https://github.com/Phantas0s/mouseless-dev-youtube/blob/master/bash_best_practice/backup_v2.sh Ending script: https://github.com/Phantas0s/mouseless-dev-youtube/blob/master/bash_best_practice/backup_v3.sh I'm using Vim with shellcheck for static analysis. For snippets, ultisnips is my friend. 📙 Building Your Mouseless Development Environment: https://themouseless.dev 📑 Learning to Play Vim: https://themouseless.dev/vim 💎 Increase your value as a developer: https://thevaluable.dev 🐙 Github: https://github.com/Phantas0s 🍒 Support the channel: https://github.com/sponsors/Phantas0s

Comment