HomeSetup Developer Handbook
Standard-Tools
Table of contents
Paths tool
__hhs_paths
usage: __hhs_paths [options] <args>
Options:
-a <path> : Add to the current <path> to PATH.
-r <path> : Remove from the current <path> from PATH.
-e : Edit current HHS_PATHS_FILE.
-c : Attempt to clear non-existing paths. System paths are not affected.
-q : Quiet mode on.
Notes:
- When no arguments are provided it will list all PATH payload.
Purpose
Manage your custom PATH entries.
Returns
0 on success; non-zero otherwise.
Parameters
- $1 Conditional : The path to be added or removed.
Examples
__hhs_paths
Output
Listing all PATH entries:
/usr/local/opt/ruby/bin............................................... => Custom paths
/usr/local/bin........................................................ => Shell export
/System/Cryptexes/App/usr/bin......................................... => Shell export
/usr/bin.............................................................. => Shell export
/bin.................................................................. => Shell export
/usr/sbin............................................................. => Shell export
/sbin................................................................. => Shell export
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/lo.... => Shell export
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bi.... => Shell export
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/ap.... => Shell export
/Users/hjunior/.local/bin............................................. => Shell export
/Users/hjunior/.config/hhs/bin........................................ => Shell export
/Users/hjunior/HomeSetup/tests/bats/bats-core/bin..................... => Shell export
__hhs_paths -a /tmp
Output
Path was added: "/tmp"
__hhs_paths -r /tmp
Output
Path was removed: "/tmp"