alias-completion: Use 'command rm' instead of rm to avoid aliases

pull/1738/head
Noah Gorny 2020-12-14 01:25:58 +02:00
parent f5753e4416
commit 1c05d71819
1 changed files with 1 additions and 1 deletions

View File

@ -91,5 +91,5 @@ function alias_completion {
echo "$new_completion" >> "$tmp_file" echo "$new_completion" >> "$tmp_file"
fi fi
done < <(alias -p | sed -Ene "s/$alias_regex/\2 '\3' '\4'/p") done < <(alias -p | sed -Ene "s/$alias_regex/\2 '\3' '\4'/p")
source "$tmp_file" && rm -f "$tmp_file" source "$tmp_file" && command rm -f "$tmp_file"
}; alias_completion }; alias_completion