shell

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 8 Imported by: 4

README

go-shell

PkgGoDev

Package shell returns a user's shell across multiple platforms.

License

MIT

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

func CurrentUserShell() (string, bool)

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.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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