https://github.com/dawsbot/get-shell-rc
Get the rc file path for any Linux/Unix Shel
https://github.com/dawsbot/get-shell-rc
Last synced: 8 months ago
JSON representation
Get the rc file path for any Linux/Unix Shel
- Host: GitHub
- URL: https://github.com/dawsbot/get-shell-rc
- Owner: dawsbot
- License: mit
- Created: 2016-12-19T02:05:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-19T11:24:07.000Z (about 7 years ago)
- Last Synced: 2025-10-11T19:58:55.333Z (9 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# get-shell-rc
[](https://www.npmjs.com/package/get-shell-rc)
[](https://travis-ci.org/dawsonbotsford/get-shell-rc)
[](https://github.com/sindresorhus/xo)
> Get the rc file path for any Linux/Unix Shell
## Install
```
npm install --save get-shell-rc
```
## Usage
```js
const getShellRc = require('get-shell-rc');
// when using bash
getShellRc();
//=> '/users/yourUsername/.bashrc'
// when using zsh
getShellRc();
//=> '/users/yourUsername/.zshrc'
```
## API
### getShellRc()
Returns a `string` with the absolute file path to your respective shell's `rc` file.
## License
MIT © [Dawson Botsford](http://dawsonbotsford.com)