/usr/share/bash-completion/completions/perf is in linux-base 4.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # perf(1) completion
# Get completions for the right version of perf for the current kernel.
# Remove flavour or custom suffix and fix number of version components to 2.
version="$(uname -r)"
version="${version%%-*}"
case "$version" in
*.*.*)
version="${version%.*}"
;;
esac
if [ -f /usr/share/bash-completion/completions/"perf_$version" ]; then
. /usr/share/bash-completion/completions/"perf_$version"
fi
|