Skip to content

Commit 1b4e7f3

Browse files
committed
readme on source detection
1 parent 4c93214 commit 1b4e7f3

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,32 @@ tap Esc/q/Ctrl-C to quit, <-/-> to paginate
9797
•○
9898
```
9999

100+
and for the path variable with source detection:
101+
102+
```text
103+
+---+--------+-----+----------------------------------+-----------------+
104+
| # | DUP[#] | BAD | PATH | ±SOURCES |
105+
+---+--------+-----+----------------------------------+-----------------+
106+
| 1 | | | /Users/d/.opam/default/bin | |
107+
| 2 | | | /Users/d/.local/share/ponyup/bin | ~/.zshrc |
108+
| 3 | | | /usr/local/sbin | ~/.zshrc |
109+
| 4 | | | /opt/homebrew/bin | ~/.bash_profile |
110+
| 5 | | | /opt/homebrew/sbin | |
111+
+---+--------+-----+----------------------------------+-----------------+
112+
•○○○○○
113+
```
114+
100115
### Direct Output
101116

102117
```bash
103-
export SOME_PATH='/sbin:~/.bashrc:/a:/b:/a:/c:/d:/e:/f:/g'
104-
pathdebug SOME_PATH -o table
118+
pathdebug PATH -o table
105119
```
106120

107121
see help for other formats
108122

109123
## Limitations
110124

111-
- finding the sources where the PATH variable entries are set is best-effort
125+
- finding the sources where the `PATH` variable entries are set is best-effort, and is done only for the `PATH` environment variable at present
112126
- path set by executables currently not tracked as sources
113127
- CSV output may lag in output completeness
114128

0 commit comments

Comments
 (0)