A golang library to get the login shell of the current user.
Need PR for the other OS!
- Plan9
- Linux
- OpenBSD
- FreeBSD
- Android (termux)
- Darwin
- Windows
package main
import (
"github.com/riywo/loginshell"
"fmt"
)
func main() {
shell, err := loginshell.Shell()
if err != nil { panic(err) }
fmt.Printf("%s", shell)
}
MIT
Ryosuke IWANAGA a.k.a. riywo