mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
common-aliases: Extend list of recognized raster & vector image formats
This commit is contained in:
parent
d646884add
commit
bc0433e518
1 changed files with 18 additions and 1 deletions
|
@ -61,8 +61,25 @@ if is-at-least 4.2.0; then
|
||||||
_editor_fts=(cpp cxx cc c hh h inl asc txt TXT tex)
|
_editor_fts=(cpp cxx cc c hh h inl asc txt TXT tex)
|
||||||
for ft in $_editor_fts; do alias -s $ft='$EDITOR'; done
|
for ft in $_editor_fts; do alias -s $ft='$EDITOR'; done
|
||||||
|
|
||||||
|
# open image files in image viewer
|
||||||
if [[ -n "$XIVIEWER" ]]; then
|
if [[ -n "$XIVIEWER" ]]; then
|
||||||
_image_fts=(jpg jpeg png gif mng tiff tif xpm)
|
# List inspired by https://en.wikipedia.org/wiki/Image_file_formats
|
||||||
|
_image_fts=(
|
||||||
|
#: Raster formats
|
||||||
|
# JPEG, JPEG2000, HEIF/HEVC, JBIG
|
||||||
|
jpg jpeg jpe jif jfif jfi jp2 j2k jpf jpx jpm mj2 heif heic jbg jbig
|
||||||
|
# BMP, BPG, GIF, ICO/ANI, PCX, PNG+MNG, TGA, TIFF, WebP (Web)
|
||||||
|
bmp bpg gif dib ico cur ani pcx png mng tga tiff tif webp
|
||||||
|
# NetPBM, XBM/XPM/XWD (ASCII)
|
||||||
|
pbm bgm ppm pnm xbm xpm xwd
|
||||||
|
# CIFF, DNG, DPX, ECW, FITS, ICS, RGBE (HDR & Raw)
|
||||||
|
crw dng dpx ecw fits ics ids fit fts hdr
|
||||||
|
# DDS ICNS OpenRaster SunRaster (Other)
|
||||||
|
dds icns ora ras sun
|
||||||
|
#: Vector formats
|
||||||
|
# CGM WMF Gerber IGES SVG
|
||||||
|
cgm wmf emf wmz emz gbr iges svg svgz
|
||||||
|
)
|
||||||
for ft in $_image_fts; do alias -s $ft='$XIVIEWER'; done
|
for ft in $_image_fts; do alias -s $ft='$XIVIEWER'; done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue