File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,14 @@ update_path() {
2323}
2424
2525# Check for zsh or bash and their respective files
26+
2627if [ -n " $ZSH_VERSION " ]; then
28+ echo " updating zsh profile"
2729 if [ -f " $HOME /.zshrc" ]; then
2830 update_path " $HOME /.zshrc"
2931 fi
3032elif [ -n " $BASH_VERSION " ]; then
33+ echo " updating bash profile"
3134 if [ -f " $HOME /.bash_profile" ]; then
3235 update_path " $HOME /.bash_profile"
3336 elif [ -f " $HOME /.bashrc" ]; then
4144
4245# Apply the changes by sourcing the profile files
4346if [ -n " $ZSH_VERSION " ] && [ -f " $HOME /.zshrc" ]; then
47+ # shellcheck disable=SC1091
4448 source " $HOME /.zshrc"
4549elif [ -n " $BASH_VERSION " ]; then
4650 if [ -f " $HOME /.bash_profile" ]; then
51+ # shellcheck disable=SC1091
4752 source " $HOME /.bash_profile"
4853 elif [ -f " $HOME /.bashrc" ]; then
54+ # shellcheck disable=SC1091
4955 source " $HOME /.bashrc"
5056 elif [ -f " $HOME /.profile" ]; then
57+ # shellcheck disable=SC1091
5158 source " $HOME /.profile"
5259 fi
5360fi
You can’t perform that action at this time.
0 commit comments