Documentation ¶
Overview ¶
Package shell returns the current user's shell across multiple platforms.
Example (Shell_CurrentUserShell) ¶
shell, _ := shell.CurrentUserShell() fmt.Println(shell)
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUserShell ¶
CurrentUserShell returns the current user's shell.
func DefaultShell ¶ added in v0.3.0
func DefaultShell() string
DefaultShell returns the default shell depending on runtime.GOOS.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.