aboutsummaryrefslogtreecommitdiff
path: root/docs/luarocks_path.md
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2025-01-05 21:40:39 -0300
committerHisham Muhammad <hisham@gobolinux.org>2025-02-21 11:22:43 -0300
commit7e86fa86b4d08fd6118d6eab46d92b29ffea791e (patch)
tree10fdd12beed4b0eca408533ad11d1f52d7d62e10 /docs/luarocks_path.md
parent1ada2ea4bbd94ac0c58e3e2cc918194140090a75 (diff)
downloadluarocks-7e86fa86b4d08fd6118d6eab46d92b29ffea791e.tar.gz
luarocks-7e86fa86b4d08fd6118d6eab46d92b29ffea791e.tar.bz2
luarocks-7e86fa86b4d08fd6118d6eab46d92b29ffea791e.zip
docs: import Wiki docs into the main repo
Diffstat (limited to 'docs/luarocks_path.md')
-rw-r--r--docs/luarocks_path.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/luarocks_path.md b/docs/luarocks_path.md
new file mode 100644
index 00000000..05f36fe0
--- /dev/null
+++ b/docs/luarocks_path.md
@@ -0,0 +1,32 @@
1# luarocks path
2
3Return the currently configured package path.
4
5## Usage
6
7`luarocks path [--append] [--bin] [--lr-path | --lr-cpath | --lr-bin]`
8
9Prints package paths for this installation of Luarocks formatted as a shell
10script. The script prepends these values to default system ones
11(`package.path` and `package.cpath`) and updates `$LUA_PATH` and `$LUA_CPATH`
12environment variables. On Unix systems, you may run:
13
14```
15eval $(luarocks path)
16```
17
18If `--append` is passed, LuaRocks paths are appended to system values instead
19of being prepended.
20
21If `--bin` is passed it also prints path to the directories where
22command-line scripts provided by rocks are located, prepending it to
23`$PATH` (or appending if `--append` is used).
24
25`--lr-path`, `--lr-cpath`, and `--lr-bin` flags print just corresponding
26paths, without systems values and not formatted as a shell script.
27
28## Example
29
30```
31luarocks path
32```