Created
January 13, 2023 05:45
-
-
Save xoxwgys56/32da794ce613ef704e8db2bdea5a42a7 to your computer and use it in GitHub Desktop.
zsh init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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$ ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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