一键导入
git-git-bash-prompt
Git in Bash prompt. TIL note about git. Use when working with git and the user mentions git bash prompt or related topics.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git in Bash prompt. TIL note about git. Use when working with git and the user mentions git bash prompt or related topics.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Back up a data directory to a remote host automatically whenever it changes, using inotify + rsync as a systemd user service. TIL note about linux. Use when working with linux and the user mentions event-driven backup, inotify rsync, watch-and-sync, or scheduled/continuous backups.
Show CPU temperature in the tmux status bar via the Dracula theme, with dynamic color based on the value, on Linux (desktops, servers, SBCs). Update-safe — uses /sys/class/thermal/ sysfs and does not patch the dracula plugin. Use when working with tmux on any Linux box and the user mentions adding a CPU temp segment to the tmux status line.
Show CPU temperature in the tmux status bar via the Dracula theme, with dynamic color based on the value (cold/normal/warm/hot), in an update-safe way. macOS (Apple Silicon) version using smctemp. Use when working with tmux, dracula/tmux, or the user mentions adding a CPU temp segment to the tmux status line on a Mac.
Install the Pi coding agent. TIL note about ai. Use when working with ai and the user mentions pi coding agent or related topics.
Use FFMPEG to cut and concatenate MP4 files. TIL note about ffmpeg. Use when working with ffmpeg and the user mentions cut cat mp4 or related topics.
Resize video file using ffmpeg. TIL note about ffmpeg. Use when working with ffmpeg and the user mentions resize video or related topics.
| name | git-git-bash-prompt |
| description | Git in Bash prompt. TIL note about git. Use when working with git and the user mentions git bash prompt or related topics. |
How to see git repository status in your bash prompt (see the .sh file for zsh instructions)
Save git-prompt.sh in ~/.bash/
Add to .bashrc:
source ~/.bash/git-prompt.sh # Show git branch name at command prompt
export GIT_PS1_SHOWCOLORHINTS=true # Option for git-prompt.sh to show branch name in color
# Include git branch, use PROMPT_COMMAND (not PS1) to get color output (see git-prompt.sh for more)
export PROMPT_COMMAND='__git_ps1 "\u@\h \W" "\\\$ "' # Git branch (relies on git-prompt.sh)
# Set these to non-empty to enable by defaut. See git-prompt.sh for more.
export GIT_PS1_SHOWDIRTYSTATE="Y"
export GIT_PS1_SHOWSTASHSTATE="Y"
export GIT_PS1_SHOWUNTRACKEDFILES="Y"