Skip to content

Instantly share code, notes, and snippets.

@krono
Created July 27, 2023 08:48
Show Gist options
  • Select an option

  • Save krono/1df59340148662276380c54f716502c5 to your computer and use it in GitHub Desktop.

Select an option

Save krono/1df59340148662276380c54f716502c5 to your computer and use it in GitHub Desktop.

Revisions

  1. krono created this gist Jul 27, 2023.
    5 changes: 5 additions & 0 deletions add_brew_path_and_default_path.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/sh
    set -eux

    # Sets path to brews + default (and NOT user configured)
    sudo launchctl config user path "$(brew --prefix)/bin:$(sysctl -n user.cs_path)"