4 # tagline: cross-platform PATH management for bash, zsh, fish, cmd.exe, and PowerShell
7 # - Mac, Windows, Linux
9 # - Command, Powershell
15 my_url="https://rootprojects.org/pathman/dist/$(uname -s)/$(uname -m)/pathman"
16 curl -fL "$my_url" -o pathman
20 # Move to ~/.local/bin
22 mv ./pathman ~/.local/bin
26 my_pathman=$(command -v pathman)
28 if [ -n "$my_pathman" ]; then
29 if [ "$my_pathman" != "$HOME/.local/bin/pathman" ]; then
30 echo "a pathman installation (which make take precedence) exists at:"
36 # add to ~/.local/bin to PATH even if pathman is elsewhere
37 # TODO pathman needs silent option and debug output (quiet "already exists" output)
38 ~/.local/bin/pathman add ~/.local/bin # > /dev/null 2> /dev/null
39 # TODO inform user to add to path, apart from pathman?