load adds a 'which' function if 'which' command is missing
parent
0b092adfda
commit
b38417294f
6
load.sh
6
load.sh
|
@ -65,6 +65,12 @@ unset BASH_SHELL_LOADED
|
|||
|
||||
module_load shell-process-directory
|
||||
|
||||
if ! command -v which > /dev/null; then
|
||||
echo missing "which" command install package
|
||||
which () { command -v "$1"; }
|
||||
fi
|
||||
|
||||
|
||||
# if [[ $SSH_SESSION ]]; then
|
||||
# # ssh session only process base by default
|
||||
# # env | grep SSH
|
||||
|
|
Loading…
Reference in New Issue