Skip to content

Instantly share code, notes, and snippets.

@xoxwgys56
Created January 13, 2023 05:45
Show Gist options
  • Save xoxwgys56/32da794ce613ef704e8db2bdea5a42a7 to your computer and use it in GitHub Desktop.
Save xoxwgys56/32da794ce613ef704e8db2bdea5a42a7 to your computer and use it in GitHub Desktop.
zsh init
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='%F{#f8f8f2}%*%f %F{#bd93f9}%2~%f% %F{#ff5555}${vcs_info_msg_0_}%f$ '
# Remove dangling docker image
if ! docker images -f "dangling=true" -q &> /dev/null;
then docker rmi $(doker images -f "dangling=true" -q);
else echo "🚗 no dangling docker images";
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment