Skip to content

Commit 45b5cd2

Browse files
committed
refactor: rename _{bash => }comp_try_faketty
1 parent f52c2a0 commit 45b5cd2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bash_completion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,8 +2256,8 @@ _comp_compgen_terms()
22562256
} 2>/dev/null)"
22572257
}
22582258

2259-
# TODO:API: rename per conventions
2260-
_bashcomp_try_faketty()
2259+
# @since 2.12
2260+
_comp_try_faketty()
22612261
{
22622262
if type unbuffer &>/dev/null; then
22632263
unbuffer -p "$@"

bash_completion.d/000_bash_completion_compat.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ _comp_deprecate_func 2.12 _gids _comp_compgen_gids
2323
_comp_deprecate_func 2.12 _xinetd_services _comp_compgen_xinetd_services
2424
_comp_deprecate_func 2.12 _services _comp_compgen_services
2525
_comp_deprecate_func 2.12 _terms _comp_compgen_terms
26+
_comp_deprecate_func 2.12 _bashcomp_try_faketty _comp_try_faketty
2627
_comp_deprecate_func 2.12 _expand _comp_expand
2728
_comp_deprecate_func 2.12 _pids _comp_compgen_pids
2829
_comp_deprecate_func 2.12 _pgids _comp_compgen_pgids

completions/postfix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _comp_cmd_postfix()
1717
esac
1818

1919
if [[ $cur == -* ]]; then
20-
_comp_compgen_usage -c _bashcomp_try_faketty "$1" --help
20+
_comp_compgen_usage -c _comp_try_faketty "$1" --help
2121
return
2222
fi
2323

0 commit comments

Comments
 (0)