shellpath

package
v1.15.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncToLoginShell

func SyncToLoginShell()

SyncToLoginShell updates the current process's PATH to include directories defined by the user's login shell. This matters for GUI/service launches, which inherit a minimal PATH that lacks common user directories: on macOS a process started from the GUI or launchd misses ~/.local/bin, /opt/homebrew/bin, etc.; on Linux a .desktop/AppImage or systemd-user launch may not source the login shell's profile at all.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL