3 ms·
For suffix aliases, you can bulk them alias -s {ape,avi,flv,m4a,mkv,mov,mp3,mp4,mpeg,mpg,ogg,ogm,wav,webm}=mpv as opposed to defining them one at a time.
by smhmd 6y ago
For suffix aliases, you can bulk them
alias -s {ape,avi,flv,m4a,mkv,mov,mp3,mp4,mpeg,mpg,ogg,ogm,wav,webm}=mpv
as opposed to defining them one at a time.
- thorstenhans 6y agothanks for pointing me to this one. I've added a corresponding sample.
- chrisfinazzo 6y agoI can't believe I got all the way through @scriptingosx's book on Zsh and the suffix aliases just went right over my head. (Self, you idiot) cd'ing into a directory on the fly without even thinking about paths and just opening files by name is powerful juju Together With AUTOCD, this feels like it shouldn't be possible...but it is.
- matthewbauer 6y agoIs it possible to get zsh to just open all non executable files with xdg-open?