diff options
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 38 |
1 files changed, 32 insertions, 6 deletions
@@ -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 |
20 | Rust is installed now. Great! | ||
21 | |||
22 | # check if you have the latest version. | ||
23 | # pista works with rustc >= 1.34 | ||
24 | $ rustc --version | ||
25 | rustc 1.36.0 (a53f9df32 2019-07-03) | ||
26 | |||
27 | # update rust if required | ||
28 | $ rustup update | ||
18 | ``` | 29 | ``` |
19 | 30 | ||
20 | cargo 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): |
21 | http://rustup.rs and follow the instructions. | 32 | ```shell |
22 | make 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 | ||
37 | Pista 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 | ||
47 | Pista 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 |
27 | PS1='$(pista)' # regular variant | 53 | PS1='$(pista)' # regular variant |
28 | PS1='$(pista -m)' # minimal variant | 54 | PS1='$(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 |
33 | autoload -Uz add-zsh-hook | 59 | autoload -Uz add-zsh-hook |
34 | _pista_prompt() { | 60 | _pista_prompt() { |