Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.06 KB

README.md

File metadata and controls

29 lines (17 loc) · 1.06 KB

mpv-netrc

Tests Coverage Status

An mpv plugin to read usernames and passwords from ~/.netrc. This script only supports netrc entries that are on a single line.

See The .netrc file.

Installation

Place netrc.lua in a place where mpv will read for scripts, such as ~/.config/mpv/scripts on Linux.

Configuration

If reading from ~/.netrc (the default), configuration is unnecessary.

To read from an alternative netrc file, do one of the following:

  • Create a file named ${CONFIG_DIR}/script-opts/netrc.conf and set the netrc-path key:

    netrc-path=PATH_TO_NETRC
    
  • Run mpv with --script-opts=netrc=PATH_TO_NETRC.

A full path is recommended. Using ~ or ~~ may not work.