diff --git a/bin/dotfiles b/bin/dotfiles index c5dfe17..2ec05ab 100755 --- a/bin/dotfiles +++ b/bin/dotfiles @@ -2,7 +2,7 @@ ## ## binaryDiv's dotfiles management script -## Version 0.4.2 +## Version 0.4.3 ## usage() { @@ -82,6 +82,8 @@ case "$cmd" in echo "* Installing user-defined bash completion (~/.bash_completion.d/)" "$0" link -q "$bashcompletion_filename" && show_bash_restart_info=1 + elif [[ ! "$(realpath "$homedir/$bashcompletion_filename")" -ef "$dotfilesdir/$bashcompletion_filename" ]]; then + echo "! Warning: File $homedir/$bashcompletion_filename already exists but is NOT a link to $dotfilesdir/$bashcompletion_filename" fi mkdir -p "$homedir/.bash_completion.d"