Skip to content

Commit

Permalink
add starship guide
Browse files Browse the repository at this point in the history
  • Loading branch information
michi-zuri authored and luto committed Sep 28, 2020
1 parent 7e849a3 commit 9cd5ec3
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
Binary file added source/_static/images/starship.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/_static/images/starship.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions source/guide_starship.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
.. highlight:: console

.. author:: michi <https://github.com/michi-zuri/>

.. tag:: console
.. tag:: rust

.. sidebar:: Logo

.. image:: _static/images/starship.svg
:align: center

####
Starship
####

.. tag_list::

Starship_ is the minimal, blazing-fast, and infinitely customizable prompt for
any shell!


----

.. image:: _static/images/starship.png

.. note:: For this guide you should be familiar with the basic concepts of

* :manual:`shell <basics-shell>`

License
=======

Starship_ is free software, available under the permissive ISC License, whcih
is functionally equivalent to BSD 2-Clause and MIT licenses,
removing some language that is no longer necessary.

Prerequisites
============

A NerdFont_ installed and enabled in your terminal on your computer (for example, try the
FiraCode Nerd Font that can be downloaded from NerdFonts_).

Installation
============
.. code-block:: console
[isabell@stardust ~]$ cargo install starship
[...]
[isabell@stardust ~]$ eval "$(starship init bash)"
isabell on stardust in ~
>
To make the prompt permanent, add one line to your .bashrc:

.. code-block:: console
isabell on stardust in ~
> echo -e '\n' >> .bashrc
isabell on stardust in ~
> echo 'eval "$(starship init bash)"' >> .bashrc
isabell on stardust in ~
>
That's it, you have successfully installed Starship_ to your Uberspace console:

.. code-block:: console
[isabell@localhost ~]$ ssh <username>@<username>.uber.space
Welcome to Uberspace7!
[...]
isabell on stardust in ~
>
.. _Starship: https://starship.rs/
.. _NerdFont: https://www.nerdfonts.com/
.. _NerdFonts: https://www.nerdfonts.com/font-downloads

.. author_list::

0 comments on commit 9cd5ec3

Please sign in to comment.