Documentation
¶
Overview ¶
Example (Shell_CurrentUserShell) ¶
shell, ok := shell.CurrentUserShell() _ = ok fmt.Println(shell)
Example (Shell_UserShell) ¶
u, err := user.Current()
if err != nil {
fmt.Println(err)
return
}
shell, ok := shell.UserShell(u)
_ = ok
fmt.Println(shell)
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUserShell ¶
CurrentUserShell is a convenience function that returns the current user's shell.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.