Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 10-Jun-2019 | 7 | |||
LICENSE | H A D | 10-Jun-2019 | 1 KiB | |||
README.md | H A D | 10-Jun-2019 | 475 | |||
loginshell.go | H A D | 10-Jun-2019 | 1.5 KiB | |||
loginshell_test.go | H A D | 10-Jun-2019 | 496 |
README.md
1# loginshell 2 3A golang library to get the login shell of the current user. 4 5## Supporting GOOS 6 7Need PR for the other OS! 8 9- Linux 10- Darwin 11- Plan9 12- OpenBSD 13- FreeBSD 14- Windows 15 16## Usage 17 18 package main 19 20 import ( 21 "github.com/riywo/loginshell" 22 "fmt" 23 ) 24 25 func main() { 26 shell, err := loginshell.Shell() 27 if err != nil { panic(err) } 28 fmt.Printf("%s", shell) 29 } 30 31## License 32 33MIT 34 35## Author 36 37Ryosuke IWANAGA a.k.a. riywo 38