Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrissimpkins/path
View system PATH as an ordered list
https://github.com/chrissimpkins/path
environment-variables linux macos system unix
Last synced: 22 days ago
JSON representation
View system PATH as an ordered list
- Host: GitHub
- URL: https://github.com/chrissimpkins/path
- Owner: chrissimpkins
- License: mit
- Created: 2017-12-29T22:43:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-30T20:10:29.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T19:50:46.569Z (about 1 month ago)
- Topics: environment-variables, linux, macos, system, unix
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# path
[![Build Status](https://travis-ci.org/chrissimpkins/path.svg?branch=master)](https://travis-ci.org/chrissimpkins/path)
`path` is a command line executable that displays all paths on the system PATH as an ordered list by descending priority. It is intended for Unix-like systems including Linux and macOS.
![path](https://user-images.githubusercontent.com/4249591/34450807-036fe1b6-ece2-11e7-9841-69c175ecc5b3.png)
## Install
### Quick Install
Execute the following series of commands to download the source archive, unpack it, and install `path` to `/usr/local/bin/path`:
```text
curl -LO https://github.com/chrissimpkins/path/archive/master.tar.gz
tar -xvzf master.tar.gz
cd path-master
make && sudo make install
```Detailed installation instructions follow if you have difficulties with the above installation approach.
### Build Dependencies
Please confirm that `make` is installed to use the following instructions for installation of `path`.
macOS users must install XCode with the command line developer tools in order to compile `path` from source. You can install XCode from the App Store.
Most Linux users can install `make` with the respective Linux distro package manager if it is not available by default.
### Download path source code
[Download an archive of the `path` source code](https://github.com/chrissimpkins/path/releases/latest) and unpack it to a directory on your system. Navigate to the root of the source code archive that you unpacked.
### Compile the executable
Next, compile the executable from the source code and install with:
```text
$ make && sudo make install
````path` is installed on the file path `/usr/local/bin/path`. Confirm that `/usr/local/bin` exists on your system PATH in order to use the application.
## Usage
`path` is executed with a simple command line request:
```text
$ path
```This request will stream an ordered, newline delimited list of your system PATH directory paths to the standard output stream. The list is in descending order of priority from highest (top) to lowest (bottom).
## License
[MIT License](https://github.com/chrissimpkins/path/blob/master/LICENSE)