All Projects → reujab → Silver

reujab / Silver

Licence: mit
A cross-shell customizable powerline-like prompt with icons

Programming Languages

shell
77523 projects
rust
11053 projects
bash
514 projects

Projects that are alternatives of or similar to Silver

Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+5357.56%)
Mutual labels:  zsh, fish, prompt, powerline
Liquidprompt
A full-featured & carefully designed adaptive prompt for Bash & Zsh
Stars: ✭ 4,134 (+1636.97%)
Mutual labels:  zsh, prompt, powerline
Powerline Go
A beautiful and useful low-latency prompt for your shell, written in go
Stars: ✭ 2,299 (+865.97%)
Mutual labels:  zsh, fish, powerline
Powerline Shell
A beautiful and useful prompt for your shell
Stars: ✭ 5,743 (+2313.03%)
Mutual labels:  zsh, fish, powerline
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
Stars: ✭ 66 (-72.27%)
Mutual labels:  fish, prompt, powerline
Angel Ps1
Your fancy shell prompt fed by your guardian angel
Stars: ✭ 60 (-74.79%)
Mutual labels:  zsh, prompt, powerline
Nicy
❄️ a nice and icy zsh and bash prompt in Nim
Stars: ✭ 148 (-37.82%)
Mutual labels:  zsh, prompt
Shelby
Shelby is a fast ⚡️ , lightweight ☁️ , minimal✨, shell prompt written in Go.
Stars: ✭ 148 (-37.82%)
Mutual labels:  zsh, prompt
Promptless
🚀 A super fast and extremely minimal shell prompt.
Stars: ✭ 155 (-34.87%)
Mutual labels:  zsh, prompt
Xxh
🚀 Bring your favorite shell wherever you go through the ssh.
Stars: ✭ 2,559 (+975.21%)
Mutual labels:  zsh, fish
Gh
Easily manage your local git repos
Stars: ✭ 156 (-34.45%)
Mutual labels:  zsh, fish
Z.lua
⚡ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+809.24%)
Mutual labels:  zsh, fish
Lean
Pretty, minimal, one-line, fast ZSH prompt
Stars: ✭ 136 (-42.86%)
Mutual labels:  zsh, prompt
Up
Quickly navigate to a parent directory via tab-completion.
Stars: ✭ 126 (-47.06%)
Mutual labels:  zsh, fish
Zsh Prompt Garrett
A prompt with the information you need the moment you need it.
Stars: ✭ 150 (-36.97%)
Mutual labels:  zsh, prompt
Polyglot
Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, dash, and busybox ash
Stars: ✭ 118 (-50.42%)
Mutual labels:  zsh, prompt
Gitmux
💻 Git in your tmux status bar
Stars: ✭ 180 (-24.37%)
Mutual labels:  zsh, fish
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (-23.53%)
Mutual labels:  zsh, prompt
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+6516.81%)
Mutual labels:  zsh, prompt
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+1757.98%)
Mutual labels:  zsh, fish

silver

Join the chat at https://gitter.im/reujab-silver/community

Packaging status

A cross-shell customizable powerline-like prompt heavily inspired by Agnoster. The faster rust port of bronze.

How does it work?

Unlike most shell prompts, silver is not written in shell script, but entirely in Rust.

When silver init is run, it outputs shell code that sets your left prompt to run silver lprompt and right prompt to silver rprompt, which output the actual prompt.

Getting started

Since silver is not written in shell script, it should theoretically be compatible with any shell, but the supported shells are Powershell, Bash, Zsh, fish, Ion and Elvish.

Icons

To be able to use the custom icons (which are enabled by default), you must patch your font or install a pre-patched font from Nerd Fonts.

Installation

From source

  • install and setup Rust
  • run cargo install --git https://github.com/reujab/silver

From pre-compiled binary

  • download a binary on the releases page
  • add binary to PATH environment variable

macOS

On macOS, you will have to do a bit more:

  • install Homebrew
  • run brew install coreutils
  • run brew install openssl
  • add alias date="gdate" to your shell config

Configuration

Now that you have silver installed, you need to configure it. To have your prompt look like the one in the screenshot above, create silver.toml with the following content:

[[left]]
name = "dir"
color.background = "blue"
color.foreground = "black"

[[left]]
name = "git"
color.background = "green"
color.foreground = "black"

[[right]]
name = "status"
color.background = "white"
color.foreground = "black"

[[right]]
name = "cmdtime"
color.background = "magenta"
color.foreground = "black"

[[right]]
name = "shell"
color.background = "green"
color.foreground = "black"

Now that silver is configured, you need to evaluate its bootstrap code.

Bash

~/.bashrc:

source <(silver init)

Ion

~/.config/ion/initrc:

eval $(silver init)

Powershell

Invoke-Expression -Command $(silver init | Out-String)

Zsh

See zsh plugin

Fish

See fish plugin

Elvish

See elvish plugin

Documentation

Documentation is available on the wiki.

Project structure

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].