nvm icon indicating copy to clipboard operation
nvm copied to clipboard

Add support for .bash_aliases detection in install script

Open boan-jfm opened this issue 7 months ago • 4 comments
trafficstars

Hi,

In the install script, consider also testing for .bash_aliases. Right now, it seems to only check: *"/.bashrc" | *"/.bash_profile" | *"/.zshrc" | *"/.zprofile".

Example from .bashrc:

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

OS: Ubuntu 24.04

Referenced line: https://github.com/nvm-sh/nvm/blob/ffec9fec724da725013d5b50e763908113983fc3/install.sh#L43C23-L43C35

boan-jfm avatar Apr 08 '25 09:04 boan-jfm