Você poderia fazer isso usando uma função bash personalizada. Adicione isso ao seu .bash_profile :
function qwik_dply {
local msg=$1
if [ -z "$msg" ] ; then
msg="No message"
fi
git add .
git commit -m "$msg"
git push
cap deploy
}
Ligue do bash usando qwik_dply "Some text"
Como alternativa, faça um roteiro adequado:
#!/usr/bin/env bash
msg=$1
if [ -z "$msg" ] ; then
echo "Usage: qwik_dply <message>"
exit 1
fi
git add .
git commit -m "$msg"
git push
cap deploy
Salvar como qwik_dply.sh , executar chmod ugo+x qwik_dply.sh e mv a /usr/bin ou qualquer outro diretório no seu $PATH .
Em seguida, execute usando qwik_dply.sh "Some message" . Você poderia remover a extensão do nome do arquivo, é claro.