Comment Comment by mihaigalos I'm using this in my .zshrc: function cd { builtin cd "$@" && [ -d .git ] && git pull || true; exa -all --group-directories-first; } alias acp='git add -u &&-c "git log --color --pretty=format:\"%s\" --abbrev-commit -- |>/tmp/git_log_sk && git commit --gpg-sign --edit -F /tmp/git_log_sk && rm /tmp/git_log_sk" && git push -u origin HEAD' The cd automatically pulls if it's a git repo. The acp is shorthand for "add+commit+push" with sk as a fuzzy finder for a commit message editing (vim integrations). parent mihaigalos 1 year ago