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
| PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} ) %(!.%{%F{yellow}%}.)%n@%m %{$fg[cyan]%}%c%{$reset_color%}" | |
| PROMPT+=' $(git_prompt_info)' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}%1{✗%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
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
| Registered Name: https://zhile.io | |
| License Key: 48891cf209c6d32bf4 |
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
| #!/bin/bash | |
| DEBIAN_FRONTEND=noninteractive | |
| sudo apt update | |
| sudo apt install -y screen git | |
| curl -fsSL get.docker.com|sudo bash | |
| sudo apt install -y docker-compose | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER | |
| newgrp docker |
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
| #!/bin/bash | |
| command -v jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed. Aborting."; exit 1; } | |
| command -v gh >/dev/null 2>&1 || { echo >&2 "I require gh but it's not installed. Aborting."; exit 1; } | |
| set -e | |
| FORCE=false | |
| # 解析可选参数 | |
| while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do |