我正在尝试设置这个简单的别名:
alias git plog = git log --pretty=format:'%C(yellow)%h%Cred%d%Creset - %C(cyan)%an %Creset: %s %Cgreen(%cr)'
Run Code Online (Sandbox Code Playgroud)
在我的 .zshrc 文件中。当我重新加载时,我得到了这个:
no matches found: git log --pretty=format:%C(yellow)%h%Cred%d%Creset
Run Code Online (Sandbox Code Playgroud)
如果我把它放在我的 .gitconfig 中
[alias]
ci = commit
plog = log --pretty=format:'%C(yellow)%h%Cred%d%Creset - %C(cyan)%an %Creset: %s %Cgreen(%cr)'
Run Code Online (Sandbox Code Playgroud)
Zsh shell 每次都给我这个:
$git:(embedded_gifs) git plog
zsh: correct 'plog' to 'log' [nyae]? n
Run Code Online (Sandbox Code Playgroud)
任何想法来解决这个问题?