get-shell-rc

1.0.0 • Public • Published

get-shell-rc

npm version Build Status XO code style

Get the rc file path for any Linux/Unix Shell

Install

npm install --save get-shell-rc

Usage

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

Package Sidebar

Install

npm i get-shell-rc

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dawsonbotsford