mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-12-01 02:59:50 +00:00
Release 2.24.0
This commit is contained in:
1 parent
e1565398f4
commit
2b3b0558ea
7 files changed
+51
-13
No files matched your search
@@ -747,7 +747,12 @@ _shtab_ahriman() {
|
||||
compgen -W "${current_action_choices[*]}" -- "$completing_word")
|
||||
fi
|
||||
|
||||
if [[ ${#COMPREPLY[@]} = 0 ]]; then
|
||||
# native fallback matches are not necessarily filenames (e.g. variables)
|
||||
compopt +o filenames 2>/dev/null || : # bash>=4
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -F _shtab_ahriman ahriman
|
||||
complete -o bashdefault -F _shtab_ahriman ahriman
|
||||
@@ -1,4 +1,4 @@
|
||||
.TH AHRIMAN "1" "2026\-10\-30" "ahriman 2.23.6" "ArcH linux ReposItory MANager"
|
||||
.TH AHRIMAN "1" "2026\-11\-30" "ahriman 2.24.0" "ArcH linux ReposItory MANager"
|
||||
.SH NAME
|
||||
ahriman \- ArcH linux ReposItory MANager
|
||||
.SH SYNOPSIS
|
||||
|
||||
@@ -1095,7 +1095,17 @@ typeset -A opt_args
|
||||
|
||||
if [[ $zsh_eval_context[-1] == eval ]]; then
|
||||
# eval/source/. command, register function for later
|
||||
compdef _shtab_ahriman -N ahriman
|
||||
_shtab_ahriman_register() {
|
||||
# `compdef` is defined by `compinit`
|
||||
if (( $+functions[compdef] )); then
|
||||
compdef _shtab_ahriman -N ahriman
|
||||
# drop registration hook (avoid multiple `compdef` calls)
|
||||
add-zsh-hook -d precmd _shtab_ahriman_register
|
||||
fi
|
||||
}
|
||||
# register completer before next prompt
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook precmd _shtab_ahriman_register
|
||||
else
|
||||
# autoload from fpath, call function directly
|
||||
_shtab_ahriman "$@"
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
__version__ = "2.23.6"
|
||||
__version__ = "2.24.0"
|
||||
Reference in new issue
Block a user