An open API service indexing awesome lists of open source software.

https://github.com/axrona/pulsarship

๐Ÿš€๐ŸŒ  A minimal, fast, and customizable terminal prompt written in Go
https://github.com/axrona/pulsarship

bash fish fish-prompt golang linux prompt pulsarship shell shell-prompt zsh zsh-prompt

Last synced: 9 months ago
JSON representation

๐Ÿš€๐ŸŒ  A minimal, fast, and customizable terminal prompt written in Go

Awesome Lists containing this project

README

          

# ๐Ÿš€๐ŸŒ  Pulsarship


[![License: GPL3](https://img.shields.io/github/license/axrona/pulsarship?style=for-the-badge&logo=opensourceinitiative&logoColor=white)](https://github.com/axrona/pulsarship/blob/main/LICENSE)
[![Go Version](https://img.shields.io/badge/Go-1.24+-blue?style=for-the-badge&logo=go&logoColor=white)](https://golang.org/dl/)
[![Release](https://img.shields.io/github/v/release/axrona/pulsarship?style=for-the-badge&logo=github&logoColor=white&v=1)](https://github.com/axrona/pulsarship/releases/latest)
[![Platform](https://img.shields.io/badge/platform-Linux-lightgrey?style=for-the-badge&logo=linux&logoColor=white)](https://www.kernel.org/)

---

**๐Ÿš€ Pulsarship** is a minimal, fast and customizable shell prompt tool written in Go.

[โœจ Features](#-features) โ€ข [๐Ÿ“ฆ Installation](#-installation) โ€ข [๐Ÿ”ง Shell Config](#-add-to-your-shell-config) โ€ข [๐Ÿ› ๏ธ Configuration](#-configuration) โ€ข [๐Ÿ“œ License](#-license)

## โœจ Features


- โš™๏ธ Modular architecture โ€“ Easily customize each part of the prompt
- ๐ŸŽจ Color palette support โ€“ Define theme colors using `palette`
- ๐Ÿงฉ Components โ€“ Includes:
- `cwd`, `username`, `hostname`, `git`, `character`, etc
- ๐Ÿงฐ Custom components โ€“ Define your own modules
- โšก Blazing fast โ€“ Lightweight Go binary
- ๐Ÿงช Extensible โ€“ Right prompt, async, etc




---

## ๐Ÿ“ฆ Installation
### ๐Ÿ” AUR (Arch Linux / Manjaro / EndeavourOS)

If you're using an Arch-based distribution, you can install `pulsarship` from the AUR using an AUR helper like [`yay`](https://github.com/Jguer/yay) or [`paru`](https://github.com/Morganamilo/paru):
```bash
yay -S pulsarship
```
or
```bash
paru -S pulsarship
```

### ๐Ÿ› ๏ธ Install via Script
You can install `pulsarship` with a single command:

```bash
curl -sS https://raw.githubusercontent.com/axrona/pulsarship/main/install.sh | bash
```

This script will clone the repository, build the binary, and install it for you.

### ๐Ÿ”ง Add to your shell config
Add the following to your `~/.config/fish/config.fish`:
**Fish:**
```bash
set -Ux PULSARSHIP_CONFIG ~/.config/pulsarship/pulsarship.toml
pulsarship init fish | source
```

**Zsh:**
Add the following to your `~/.zshrc`:
```zsh
export PULSARSHIP_CONFIG="$HOME/.config/pulsarship/pulsarship.toml"
eval "$(pulsarship init zsh)"
```

**Bash:**
Add the following to your `~/.bashrc`:
```bash
export PULSARSHIP_CONFIG="$HOME/.config/pulsarship/pulsarship.toml"
eval "$(pulsarship init bash)"
```

> Make sure to restart your shell or source the config file after editing:
> `source ~/.config/fish/config.fish` or `source ~/.bashrc` or `source ~/.zshrc`

## ๐Ÿ› ๏ธ Configuration

The default config file location is `~/.config/pulsarship/pulsarship.toml`.
You can generate this file by running the `pulsarship gen-config` command.

Pulsarship uses TOML-based configuration for customizing the prompt and other settings.
For more information visit the [Wiki](https://github.com/axrona/pulsarship/wiki).

## ๐Ÿค Contributing
Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

## ๐Ÿž Reporting Issues
Found a bug or have a suggestion? [Open an issue](https://github.com/axrona/pulsarship/issues). Be concise and include any relevant output or screenshots.

## ๐Ÿ“œ License
This project is licensed under the **GNU General Public License v3.0.**
See the [LICENSE](LICENSE) file for details.