phpctl icon indicating copy to clipboard operation
phpctl copied to clipboard

Improve install/uninstall scripts for non-root

Open Barbiero opened this issue 6 months ago • 0 comments

I've changed the (un)install scripts so that they are a bit more robust

  • You can now use options like -i and -s to explicitly set the install directory or the symlink path
  • it can create symlinks without sudo if the current user has permission to do so on the target symlink path
  • ensure that the target symlink path exists so we don't get cryptic errors if the user forgot to mkdir.
  • you can now install phpctl from a local repo with -l, mostly useful when you already cloned this repo and don't want to fetch from github
  • use tput for terminal colors if possible
  • can now uninstall without sudo

Also:

  • remove the phtpctl.dev reference from install.md since that URL is no longer accessible (See #49)
  • add an editorconfig just so my IDE/shfmt won't try to change every single whitespace indent

Barbiero avatar May 29 '25 13:05 Barbiero