Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
note: which I know isn't in the wiki (for a while already - before I get hanged;-) but he has from some shady site..
]]>I have followed the ArchWiki page to do it: https://wiki.archlinux.org/index.php/Zs … completion
and if he had actually done that inntead of fumbling around w/ OMZ and everything, this thread would likely not exist…
]]>seth wrote:Did you understand
seth wrote:There's no compinit in that zshrc…
As of now, no extended autocompletion should™ work for you.
So all I need is to add compinit in my zshrc?
No, you need to understand what it is your doing!
A shell is a nifty piece of work.. why don't you read the wiki and the links at the end of that page?
All the answers you need are in them.
The way you are setting up your shell now will only lead to more frustration, mostly for you..
Did you understand
seth wrote:There's no compinit in that zshrc…
As of now, no extended autocompletion should™ work for you.
So all I need is to add compinit in my zshrc?
]]>There's no compinit in that zshrc…
As of now, no extended autocompletion should™ work for you.
]]>There's no compinit in that zshrc…
Writing /usr/share/zsh/site-functions/_pacman should cause a timestamp warning?
(Maybe it doesn't, but the action was at best idempotent)To be sure:
md5sum /usr/share/zsh/site-functions/_pacman
It did cause timestamp warning before, or not, I forgot.
❯ md5sum /usr/share/zsh/site-functions/_pacman
85c32287a91ba1b4c677a7bff0005cf3 /usr/share/zsh/site-functions/_pacman
Writing /usr/share/zsh/site-functions/_pacman should cause a timestamp warning?
(Maybe it doesn't, but the action was at best idempotent)
To be sure:
md5sum /usr/share/zsh/site-functions/_pacman
And is this still Antergos?
Hasn't Antergos died for a long time?
]]>How did you "manually" add that file??
It's owned by the pacman package and that package is intact.
If you had tampered w/ it, the -Qikk output would reveal that.Please post your current zshrc.
Edit: also, are we talking abotu "pacman" or "yay" here? That's not the same.
Just copy the raw zsh_completion.in in that link, and use vim to paste it in /usr/share/zsh/site-functions/_pacman
My pacman and yay have the same problem.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Start configuration added by Zim install {{{
#
# User configuration sourced by interactive shells
#
# -----------------
# Zsh configuration
# -----------------
#
# History
#
# Remove older command from the history if a duplicate is to be added.
setopt HIST_IGNORE_ALL_DUPS
#
# Input/output
#
# Set editor default keymap to emacs (`-e`) or vi (`-v`)
bindkey -e
# Prompt for spelling correction of commands.
setopt CORRECT
# Customize spelling correction prompt.
#SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
# Remove path separator from WORDCHARS.
WORDCHARS=${WORDCHARS//[\/]}
# --------------------
# Module configuration
# --------------------
#
# completion
#
# Set a custom path for the completion dump file.
# If none is provided, the default ${ZDOTDIR:-${HOME}}/.zcompdump is used.
#zstyle ':zim:completion' dumpfile "${ZDOTDIR:-${HOME}}/.zcompdump-${ZSH_VERSION}"
#
# git
#
# Set a custom prefix for the generated aliases. The default prefix is 'G'.
#zstyle ':zim:git' aliases-prefix 'g'
#
# input
#
# Append `../` to your input for each `.` you type after an initial `..`
#zstyle ':zim:input' double-dot-expand yes
#
# termtitle
#
# Set a custom terminal title format using prompt expansion escape sequences.
# See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
# If none is provided, the default '%n@%m: %~' is used.
#zstyle ':zim:termtitle' format '%1~'
#
# zsh-autosuggestions
#
# Customize the style that the suggestions are shown with.
# See https://github.com/zsh-users/zsh-autosuggestions/blob/master/README.md#suggestion-highlight-style
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'
#
# zsh-syntax-highlighting
#
# Set what highlighters will be used.
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
# Customize the main highlighter styles.
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md#how-to-tweak-it
#typeset -A ZSH_HIGHLIGHT_STYLES
#ZSH_HIGHLIGHT_STYLES[comment]='fg=10'
# ------------------
# Initialize modules
# ------------------
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
# Update static initialization script if it does not exist or it's outdated, before sourcing it
source ${ZIM_HOME}/zimfw.zsh init -q
fi
source ${ZIM_HOME}/init.zsh
# ------------------------------
# Post-init module configuration
# ------------------------------
#
# zsh-history-substring-search
#
# Bind ^[[A/^[[B manually so up/down works both before and after zle-line-init
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# Bind up and down keys
zmodload -F zsh/terminfo +p:terminfo
if [[ -n ${terminfo[kcuu1]} && -n ${terminfo[kcud1]} ]]; then
bindkey ${terminfo[kcuu1]} history-substring-search-up
bindkey ${terminfo[kcud1]} history-substring-search-down
fi
bindkey '^P' history-substring-search-up
bindkey '^N' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# }}} End configuration added by Zim install
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias lowlatency='lowlatency'
function lowlatency(){
streamlink --player mpv --twitch-low-latency --hls-live-edge=1 $1 best &exit
}
By the way, it has been working since I added that file.
There are only 2 files in the directory now
❯ ls /usr/share/zsh/site-functions
_pacman _yay
Please post your current zshrc.
Edit: also, are we talking abotu "pacman" or "yay" here? That's not the same.
]]>seth wrote:pacman -Qo /usr/share/zsh/site-functions/_pacman pacman -Qikk pacman
❯ LANG=C pacman -Qo /usr/share/zsh/site-functions/_pacman
/usr/share/zsh/site-functions/_pacman is owned by pacman 5.2.2-1
❯ LANG=C pacman -Qikk pacman
Name : pacman
Version : 5.2.2-1
Description : A library-based package manager with dependency support
Architecture : x86_64
URL : https://www.archlinux.org/pacman/
Licenses : GPL
Groups : base-devel
Provides : libalpm.so=12-64
Depends On : bash glibc libarchive curl gpgme pacman-mirrorlist archlinux-keyring
Optional Deps : perl-locale-gettext: translation support in makepkg-template
Required By : appstream-glib base pamac-all pkgfile yay-bin
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 4.43 MiB
Packager : Allan McRae <allan@archlinux.org>
Build Date : Wed Jul 1 09:52:38 2020
Install Date : Sun Jan 24 23:00:05 2021
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
backup file: pacman: /etc/makepkg.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
pacman: 369 total files, 0 altered files
I have manually added that file, so I'm not sure if you can see where the problem is.
I did it because this guy told me this way.
https://github.com/zsh-users/zsh-comple … -766343627
]]>pacman -Qo /usr/share/zsh/site-functions/_pacman pacman -Qikk pacman