MacOS screenshot: windows with drop shadows

I might be late to this party to realize this since when I take screenshots of things I normally drag to select what it is that I want to capture. As I was taking a screenshot of some windows on MacOS Monterey I used the ‘capture window’ option and was surprised the screenshot of a window is captured preserving the dropshadow in the image:

I don’t know why I should be surprised by this, but wow, attention to detail is everything. That looks fantastic.

Adobe Creative Cloud – Native M1 or Rosetta?

Attempting to download Adobe Creative Cloud app for my new MacBook Pro M1Pro I seem to have found my first non native M1 app, and I’m prompted to download Rosetta:

If just the Creative Cloud app needs Rosetta but Photoshop is native then I’m ok with that, but thing I need to do some reading to confirm what versions are available and try installing again

Displaying current git branch in MacOS zsh prompt

Previous script for setting git branch in bash shell is here.

For zsh, here’s an approach from this gist – add to your ~/.zshrc:

function parse_git_branch() {
    git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}

COLOR_DEF=$'\e[0m'
COLOR_USR=$'\e[38;5;243m'
COLOR_DIR=$'\e[38;5;197m'
COLOR_GIT=$'\e[38;5;39m'
setopt PROMPT_SUBST
export PROMPT='${COLOR_USR}%n ${COLOR_DIR}%~ ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF} $ '