У меня есть такой gitconfig:
[alias]
l = "!source ~/.githelpers && pretty_git_log"
Когда я запускаю его, я получаю это:
[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
Когда я добавляю любые другие встроенные оболочки для тестирования, они работают нормально:
[alias]
l = "!echo running from the builtin"
[desktop] git l
running from the builtin
Любая идея, почему исходную команду нельзя найти в git? Я запускаю zsh, но переход на bash, похоже, не имеет значения:
[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
source
? - person CharlesB   schedule 19.09.2012