aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md38
1 files changed, 32 insertions, 6 deletions
diff --git a/readme.md b/readme.md
index 9dadf14..4dcb48e 100644
--- a/readme.md
+++ b/readme.md
@@ -13,22 +13,48 @@
13 - m̶̛̩̬͎̲͚͙͇͂͌̏͒̎͗̆̚i̡̛̬̩͙̣̤͈̥̟͔͆̈͑̑͠͝ņ̵̛̟̥̹͍̻͍̐͛̑͋ì̴̛̗̫͍̯͈̖̝͍͊̏͗̍̈́̾m̨̼̦͈͍͕͊̀̾̽̿̅͋͆͜a̵͔̥̫̲͙͒̎͋͌̑͘̚͜͡l̵̨̧̛̪̭̣͚͇͌̇͋̌͘͢ 13 - m̶̛̩̬͎̲͚͙͇͂͌̏͒̎͗̆̚i̡̛̬̩͙̣̤͈̥̟͔͆̈͑̑͠͝ņ̵̛̟̥̹͍̻͍̐͛̑͋ì̴̛̗̫͍̯͈̖̝͍͊̏͗̍̈́̾m̨̼̦͈͍͕͊̀̾̽̿̅͋͆͜a̵͔̥̫̲͙͒̎͋͌̑͘̚͜͡l̵̨̧̛̪̭̣͚͇͌̇͋̌͘͢
14 14
15### installation 15### installation
16
17 - Step 0: install rust
16```shell 18```shell
17$ cargo install pista 19$ curl https://sh.rustup.rs -sSf | sh
20Rust is installed now. Great!
21
22# check if you have the latest version.
23# pista works with rustc >= 1.34
24$ rustc --version
25rustc 1.36.0 (a53f9df32 2019-07-03)
26
27# update rust if required
28$ rustup update
18``` 29```
19 30
20cargo is rust's package manager. if you dont have cargo installed, head over to 31 - Step 1a (install from crates.io): install `pista` with `cargo` (rust's package manager):
21http://rustup.rs and follow the instructions. 32```shell
22make sure to add `$HOME/.cargo/bin` to your `$PATH`! 33# if you want to install from source, skip over to 1b
34$ cargo install pista
35
36$ ~/.cargo/bin/pista -V
37Pista 0.1.2
38# yay!
39```
40 - Step 1b (install from source): if you *do not* want install from crates.io, you can install from source:
41```shell
42# install from source
43$ git clone https://github.com/nerdypepper/pista --recurse-submodules
44$ cargo install --path ./ --force
23 45
46$ ~/.cargo/bin/pista -V
47Pista 0.1.2
48# yay!
49```
24 50
25 - bash users, set your `PS1`: 51 - Step 2a (bash): bash users, set your `PS1`:
26```shell 52```shell
27PS1='$(pista)' # regular variant 53PS1='$(pista)' # regular variant
28PS1='$(pista -m)' # minimal variant 54PS1='$(pista -m)' # minimal variant
29``` 55```
30 56
31 - zsh users, add this to your `.zshrc`: 57 - Step 2b (zsh): zsh users, add this to your `.zshrc`:
32```shell 58```shell
33autoload -Uz add-zsh-hook 59autoload -Uz add-zsh-hook
34_pista_prompt() { 60_pista_prompt() {