https://github.com/fraction/whereami
Just a quick script to tell you who and where you are.
https://github.com/fraction/whereami
Last synced: about 1 month ago
JSON representation
Just a quick script to tell you who and where you are.
- Host: GitHub
- URL: https://github.com/fraction/whereami
- Owner: fraction
- License: other
- Created: 2014-02-12T03:48:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-11-07T03:15:31.000Z (over 10 years ago)
- Last Synced: 2025-03-21T08:18:56.979Z (about 1 year ago)
- Homepage:
- Size: 135 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# whereami
This is a quick one-liner that tells you who and where you are in a color-coded format that works with [sshcd](https://github.com/fraction/sshcd). The `@` and `:` symbols are dimmed for readability, but will still work when [piped](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/pipe.2.html) or used in conjunction with [pbcopy](https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/man1/pbcopy.1.html).
## Installation
```sh
sudo curl -Lo /usr/local/bin/whereami http://git.io/HEbojA
sudo chmod +x /usr/local/bin/whereami
```
## Usage
The default usage is pretty difficult to screw up.
```sh
whereami
```
You can get a little bit trickier though with by piping `whereami` to `pbcopy` on OS X to copy your current username, host, and path to the clipboard.
```sh
whereami | pbcopy
```
## Support
Please [open an issue](https://github.com/fraction/whereami/issues/new) for questions and concerns.
## Contributing
Fork the project, commit your changes, and [open a pull request](https://github.com/whereami/fraction/compare/).