https://github.com/riywo/loginshell
A golang library to get the login shell of the current user.
https://github.com/riywo/loginshell
Last synced: over 1 year ago
JSON representation
A golang library to get the login shell of the current user.
- Host: GitHub
- URL: https://github.com/riywo/loginshell
- Owner: riywo
- License: mit
- Created: 2013-08-19T05:20:34.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T04:52:13.000Z (almost 6 years ago)
- Last Synced: 2025-03-29T07:33:49.514Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# loginshell
A golang library to get the login shell of the current user.
## Supporting GOOS
Need PR for the other OS!
- Plan9
- Linux
- OpenBSD
- FreeBSD
- Android (termux)
- Darwin
- 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