NOTE: screenshot uses nerd font with devicons, this is not required.
spaceship prompt is pretty good... but it was getting a bit sluggish for my liking. So I made this slimmed down version which does all the heavy lifting in D.
ldc is required to build due to the use of some non standard complier flags.
The prompt can be built using
You will need to source the generated searocket.zsh
file from your .zshrc
. By default /usr/share/searocket/searocket.zsh
, see Build flags section for details.
echo ". /usr/share/searcoket/searocket.szh" >> ${ZDOTDIR:-$HOME}/.zshrc"
All configuration is done at compile time by enabling different compilation flags.
Features can be enabled by modifying the UTILS
and INTEGRATIONS
arrays in config.mk
.
Enabling more features will cause the prompt to be slower, but this is not very perceptible.
UTILS
dir
exitcode
user
jobs
took
INTEGRATIONS
bun
d
elixir
elm
git
go
nix
nodejs
python
zig
FEATURES
timing
nogc
battery
docker
haskell
java
julia
php
ruby
rust
swift
xcode
See configOpts.md for the full list.
Variable defaultDESTDIR
PREFIX
/usr
ZSH_FILE_LOCATION
${PREFIX}/share/searocket
MODE
(not set) TESTING
(not set)
searocket
will be installed to ${DESTDIR}${PREFIX}/bin/searocket
.
searocket.zsh
file will be installed to ${DESTDIR}${ZSH_FILE_LOCATION}/searocket.zsh
.
If MODE
is set to DEBUG
, builds in debug mode. This enables all Features, utilities and integrations (even the unsupported ones). Produces better errors if the prompt crashes. Runs a bit slower.
If TESTING
is specified, running the searocket
executable will run the tests, rather than produce a prompt.
Most of the code is written by me and licensed under the MIT license (see LICENSE
file).
Regular expressions used for parsing git status are from the spaceship prompt project and are licensed under the MIT license (see spaceship prompt LICENSE.md).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4