summaryrefslogtreecommitdiff
path: root/etc/aliases/suffix
blob: 548da6021a0f0b022c4c76f87caad704f8c9072f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Sufix aliases
## Like, enter "somefile.ogg" and zsh will automatically open it using $audio_app
## vim:ft=zsh

archive_app='extr'
audio_app='mplayer'
document_app='kpdf'
image_app='feh'
video_app='mplayer'

for meta in ${parameters[(I)mime_*]#mime_}; {
	for format in $(eval echo "$"mime_$meta); {
		eval alias -s $format="$"${meta}_app
	}
	unset ${meta}_app
}

unset filetypes meta format