package
Get the rc file path for any Linux/Unix Shell
npm install get-shell-rcGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Get the rc file path for any Linux/Unix Shell
npm install --save get-shell-rcconst getShellRc = require('get-shell-rc');
// when using bash
getShellRc();
//=> '/users/yourUsername/.bashrc'
// when using zsh
getShellRc();
//=> '/users/yourUsername/.zshrc'Returns a string with the absolute file path to your respective shell's rc file.
MIT © Dawson Botsford