mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
common-aliases: Make media file viewer configurable using the $XMVIEWER
variable
This commit is contained in:
parent
5889f4cfc9
commit
ca467bd9d9
1 changed files with 4 additions and 2 deletions
|
@ -120,8 +120,10 @@ if is-at-least 4.2.0; then
|
|||
for ft in $_image_fts; do alias -s $ft='$XIVIEWER'; done
|
||||
fi
|
||||
|
||||
if [[ -n "$XMVIEWER" ]]; then
|
||||
_media_fts=(ape avi flv m4a mkv mov mp3 mpeg mpg ogg ogm rm wav webm)
|
||||
for ft in $_media_fts; do alias -s $ft=mplayer; done
|
||||
for ft in $_media_fts; do alias -s $ft=$XMVIEWER; done
|
||||
fi
|
||||
|
||||
#read documents
|
||||
alias -s pdf=acroread
|
||||
|
|
Loading…
Reference in a new issue