gitconfig aliasing using! source nie działa (zsh)
Mam taki gitconfig:
[alias]
l = "!source ~/.githelpers && pretty_git_log"
Kiedy go uruchomię, otrzymuję to:
[desktop] git l
source ~/.githelpers && pretty_git_log: 1: source: not found
error: cannot run source ~/.githelpers && pretty_git_log: No such file or directory
fatal: While expanding alias 'l': 'source ~/.githelpers && pretty_git_log': No such file or directory
Kiedy dodaję inne wbudowane powłoki do testowania, działają poprawnie:
[alias]
l = "!echo running from the builtin"
[desktop] git l
running from the builtin
Jakiś pomysł, dlaczego nie można znaleźć polecenia źródłowego w git? Używam zsh, ale zmiana na bash nie wydawała się mieć znaczenia:
[desktop] bash
[desktop] git l
source ~/.githelpers && pretty_git_log: 1: source: not found
error: cannot run source ~/.githelpers && pretty_git_log: No such file or directory
fatal: While expanding alias 'l': 'source ~/.githelpers && pretty_git_log': No such file or directory