File: README.md

package info (click to toggle)
golang-github-riywo-loginshell 0.0~git20190610.2ed199a-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 68 kB
  • sloc: makefile: 3
file content (37 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# loginshell

A golang library to get the login shell of the current user.

## Supporting GOOS

Need PR for the other OS!

- Linux
- Darwin
- Plan9
- OpenBSD
- FreeBSD
- Windows

## Usage

    package main

    import (
        "github.com/riywo/loginshell"
        "fmt"
    )
    
    func main() {
        shell, err := loginshell.Shell()
        if err != nil { panic(err) }
        fmt.Printf("%s", shell)
    }

## License

MIT

## Author

Ryosuke IWANAGA a.k.a. riywo