From e894e7cfe0ca88be292eb97207ffbd738f2d568f Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 11 Nov 2019 17:11:14 +0000 Subject: Add note on creating an alias for the docker command --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 763f5ec..e4f4c18 100644 --- a/README.md +++ b/README.md @@ -162,10 +162,21 @@ Use the container by replacing `p2r` with `docker run --rm -v # print help and exit docker run --rm -v "${HOME}/.rmapi:/home/user/.rmapi:rw" p2r --help -# equivalent to above usage via `python` +# equivalent to above usage docker run --rm -v "${HOME}/.rmapi:/home/user/.rmapi:rw" p2r -v https://arxiv.org/abs/1811.11242 ``` +You can also create an [alias](http://tldp.org/LDP/abs/html/aliases.html) in +your ``~/.bashrc`` file to abstract away the Docker commands: + +```bash +# in ~/.bashrc + +alias p2r="docker run --rm -v \"${HOME}/.rmapi:/home/user/.rmapi:rw\" p2r" +``` + +Then you can use ``paper2remarkable`` from the command line as ``p2r``! + # Notes License: MIT -- cgit v1.2.3