• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D10-Jun-20197

LICENSEH A D10-Jun-20191 KiB

README.mdH A D10-Jun-2019475

loginshell.goH A D10-Jun-20191.5 KiB

loginshell_test.goH A D10-Jun-2019496

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