Skip to content

Freed-Wu/gdb-prompt

Repository files navigation

gdb-prompt

pre-commit.ci status github/workflow

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

A GDB plugin for powerlevel10k-like prompt written in pure gdb script without dependency on the python port of gdb!

screenshot

Install

paru -S gdb-prompt-git
nix-env -iA nixos.nur.repos.Freed-Wu.gdb-prompt

Usage

Add the following code to ~/.config/gdb/gdbinit:

source /the/path/of/this/directory/gdb-prompt

Or just gdb-prompt (Yes, this file has a shebang) to open a gdb with a powerlevel10k-like prompt.

Customize

set_ps1 [prompt_string] [[text:fg_color_value:bg_color_value] [separator]] ...

customization

Alternatives

If you hate gdb script and want a more common language, you can try python.