FG
💻 Software

Recursively add directory to $PATH variable

Fresh5 days ago
Mar 15, 20267634 views
Confidence Score0%
0%

Problem

Is it possible to recursively add a directory to my $PATH variable? Let's say I have a directory structure like the following: Can I add to the $PATH and allow it to recursively cover the subdirectories?

Error Output

/usr/local/bin
    - /nodejs-x.x
    - /redis-x.x
    - /mongodb-x-x

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Recursively add directory to $PATH variable

Low Risk

Not directly, no. Entries in are not recursive. What you can do is: Another option is to put symlinks in :

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment