diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-12 10:43:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-12 10:43:56 +0100 |
commit | 2ea9d99d207cc1d0263767fe0b006460915f4da0 (patch) | |
tree | cd76978322faab21e7da05ca6e78b428087df880 /etc/alias/suffix | |
parent | 21d19830698e79cc46f4222ff51d985c362e9686 (diff) |
Moved aliases directory out of the core zshrc
Diffstat (limited to 'etc/alias/suffix')
-rw-r--r-- | etc/alias/suffix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/etc/alias/suffix b/etc/alias/suffix deleted file mode 100644 index 95b763a..0000000 --- a/etc/alias/suffix +++ /dev/null @@ -1,40 +0,0 @@ -## Sufix aliases -## Like, enter "somefile.ogg" and zsh will automatically open it using $audio_app -## vim:ft=zsh -# part 1: what filetypes to open whith what app? -# List of filetypes covered by aliases -filetypes=(archive audio midi video image document raw office emul web) - -# File extensions -archive_formats=(tar.bz2 tar.gz tar bz2 gz zip rar) -audio_formats=(flac mp3 ogg wav wma) -midi_formats=(mid s3m) -video_formats=(avi divx flv m4v mkv mp4 mpg mpeg ogm wmv) -image_formats=(bmp jpg jpeg gif png) -document_formats=(pdf ps) -raw_formats=(conf ini log txt htm html xhtml c cpp lst) -office_formats=(doc odt ott rtf sxw) -emul_formats=(exe) -web_formats=(com de net org) - -# Applications -archive_app='extr' -audio_app='mplayer' -video_app='mplayer' -midi_app='timidity' -image_app='feh -Tfull' -document_app='kpdf' -raw_app='vim' -office_app='openoffice' -emul_app='wine' -web_app='x-www-browser' - -# part 2: create the aliases -for meta in $filetypes; do - for format in $(eval echo -n "$"${meta}_formats); do - eval alias -s $format="$"${meta}_app - done - unset ${meta}_{formats,app} -done - -unset filetypes meta format |