rucker/dotfiles

[bashrc] Potentially unsafe usage of 'which' to check if programs are installed

Closed this issue · 0 comments

In several places, .bashrc uses which to determine whether a program is installed. According to this Stack Overflow answer, this is not recommended for various reasons. Rather, a simple alias or function using command, type, or hash would be a better idea.