Skip to content

Commit 9b9ee89

Browse files
committed
Add starship shell prompt
1 parent a5560c9 commit 9b9ee89

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed

build/starship/build.sh

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/bash
2+
#
3+
# {{{ CDDL HEADER
4+
#
5+
# This file and its contents are supplied under the terms of the
6+
# Common Development and Distribution License ("CDDL"), version 1.0.
7+
# You may only use this file in accordance with the terms of version
8+
# 1.0 of the CDDL.
9+
#
10+
# A full copy of the text of the CDDL should have accompanied this
11+
# source. A copy of the CDDL is also available via the Internet at
12+
# http://www.illumos.org/license/CDDL.
13+
# }}}
14+
15+
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
16+
17+
. ../../lib/build.sh
18+
19+
PROG=starship
20+
VER=1.21.1
21+
PKG=ooce/terminal/starship
22+
SUMMARY="cross-shell prompt"
23+
DESC="The minimal, blazing-fast, and infinitely customizable prompt for any shell!"
24+
25+
BUILD_DEPENDS_IPS="
26+
ooce/developer/rust
27+
"
28+
29+
CARGO_ARGS="--no-default-features --features=gix-max-perf"
30+
31+
set_arch 64
32+
33+
pre_build() {
34+
typeset arch=$1
35+
36+
export RUSTFLAGS="-C link-arg=-R$PREFIX/${LIBDIRS[$arch]}"
37+
}
38+
39+
init
40+
clone_github_source $PROG "$GITHUB/starship/$PROG" $VER
41+
BUILDDIR+=/$PROG
42+
patch_source
43+
prep_build
44+
build_rust $CARGO_ARGS
45+
install_rust
46+
strip_install
47+
make_package
48+
clean_up
49+
50+
# Vim hints
51+
# vim:ts=4:sw=4:et:fdm=marker

build/starship/local.mog

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
13+
14+
license starship/LICENSE license=ISC

doc/baseline

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ extra.omnios ooce/system/znapzend
275275
extra.omnios ooce/system/zrepl
276276
extra.omnios ooce/terminal/byobu
277277
extra.omnios ooce/terminal/minicom
278+
extra.omnios ooce/terminal/starship
278279
extra.omnios ooce/text/asciidoc
279280
extra.omnios ooce/text/asciidoctor
280281
extra.omnios ooce/text/asciinema

doc/packages.md

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
| ooce/system/zrepl | 0.6.1 | https://github.com/zrepl/zrepl/releases | [omniosorg](https://github.com/omniosorg)
227227
| ooce/terminal/byobu | 5.133 | https://launchpad.net/byobu/+download https://launchpad.net/byobu/ | [omniosorg](https://github.com/omniosorg)
228228
| ooce/terminal/minicom | 2.9 | https://salsa.debian.org/api/v4/projects/minicom-team%2Fminicom/repository/tags/ https://salsa.debian.org/minicom-team/minicom/ | [omniosorg](https://github.com/omniosorg)
229+
| ooce/terminal/starship | 1.21.1 | https://github.com/starship/starship/releases https://starship.rs | [omniosorg](https://github.com/omniosorg)
229230
| ooce/text/asciidoc | 10.2.1 | https://pypi.org/project/asciidoc | [omniosorg](https://github.com/omniosorg)
230231
| ooce/text/asciidoctor | 2.0.23 | https://github.com/asciidoctor/asciidoctor/releases/ | [omniosorg](https://github.com/omniosorg)
231232
| ooce/text/asciinema | 2.4.0 | https://github.com/asciinema/asciinema/releases | [omniosorg](https://github.com/omniosorg)

0 commit comments

Comments
 (0)