get-shell-rc
Get the rc file path for any Linux/Unix Shell
Install
npm install --save get-shell-rc
Usage
const getShellRc = ; // when using bash;//=> '/users/yourUsername/.bashrc' // when using zsh;//=> '/users/yourUsername/.zshrc'
API
getShellRc()
Returns a string
with the absolute file path to your respective shell's rc
file.
License
MIT © Dawson Botsford