Skip to content

Instantly share code, notes, and snippets.

View 1orz's full-sized avatar

orz 1orz

  • Dalian,China
  • 11:05 (UTC +08:00)
View GitHub Profile
@1orz
1orz / robbyrussell.zsh-theme
Created February 5, 2025 01:48
ohmyzsh-custom-modify
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]%})"
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@1orz
1orz / init.sh
Created November 6, 2023 04:31
Init environment
#!/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
@1orz
1orz / delete-actions-runs.sh
Last active July 13, 2025 01:22
Batch remove Github-Action workflows
#!/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