4 ms·
Worse, imagine if someone set their shell as the suffix alias for .sh, just to save time on their curl shell pipes... Oh the horror. Suffix aliases should come
by trashburger 6y ago
Worse, imagine if someone set their shell as the suffix alias for .sh, just to save time on their curl shell pipes... Oh the horror. Suffix aliases should come with a big caveat.
- Spivak 6y agoDon't worry. I got you. alias -s sh='_c(){ curl -sk $1 | sudo bash };_c' Wait. Improved. alias -s sh='_c(){ [[ -f $1 ]] && sudo bash $1 || curl -sk $1 | sudo bash };_c'