1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-27 03:42:39 +00:00
starship/docs/installing/README.md
Matthew Fry 7331e4bec6
docs: Update README.md with instructions for termux (#2257)
* Update README.md

* make Semantic PR bot happy

Co-authored-by: Matthew Fry <matthew@thefrys.net>
2021-02-21 10:36:03 +01:00

1.4 KiB

🚀 Advanced Installation

To install starship, you need to do two things:

  1. Get the starship binary onto your computer
  2. Tell your shell to use the starship binary as its prompt by modifying its init scripts

For most users, the instructions on the main page will work great. However, for some more specialized platforms, different instructions are needed.

There are so many platforms out there that they didn't fit into the main README.md file, so here are some installation instructions for other platforms from the community. Is yours not here? Please do add it here if you figure it out!

termux

Prerequisites

pkg install getconf

Installation

curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin

Nix

Getting the Binary

Imperatively

nix-env -iA nixos.starship

Declarative, single user, via home-manager

Add pkgs.starship to your home.packages in your home.nix file, then run

home-manager switch

Declarative, system-wide, with NixOS

Add pkgs.starship to environment.packages in your configuration.nix, then run

sudo nixos-rebuild switch

Modifying Init Scripts

With Nix and home-manager, using zsh:

Add the following to programs.zsh.initExtra in your home.nix file, then run

home-manager switch