[bug]: Git branch completions not working #758
-
What happened?I recently switched from OMZ to oh-my-posh, but am trying to keep the alias and completions provided by the OMZ export PATH=$HOME/bin:$PATH
# Set custom umask
umask 0007
export PAGER='less -X -F'
# zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
zinit snippet OMZL::git.zsh
zinit ice atload"unalias grv"
zinit snippet OMZP::git
zinit snippet OMZP::composer
autoload -Uz compinit && compinit
# oh-my-posh prompt
eval "$(oh-my-posh init zsh --config ~/.mytheme.omp.json)"
# custom git aliases
alias grpo='git remote prune origin'
function gdrb() {
git fetch -p
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs -r git branch -d
}The aliases work (i.e. running Steps to reproduce
Relevant outputScreenshots and recordingsNo response Operating System & VersionOS: linux-gnu | Vendor: redhat | Machine: x86_64 | CPU: x86_64 | Processor: x86_64 | Hardware: x86_64 Zsh versionzsh 5.5.1 (x86_64-redhat-linux-gnu) Terminal emulatorxterm-256color If using WSL on Windows, which version of WSLNone Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Try setting I was able to get it working using your config, see below. zinit-issue-757.mp4 |
Beta Was this translation helpful? Give feedback.
@cviebrock,
Try setting
setopt NO_complete_aliasesI was able to get it working using your config, see below.
zinit-issue-757.mp4