function glmd --description 'Format commits in markdown for MR descriptions and copy to clipboard' set -l remote (git symbolic-ref refs/remotes/origin/HEAD | awk -F'/' '{print $4}') git log --reverse --pretty=format:"- **%s** %w(0,2,2)%+b" origin/$remote.. | wl-copy end