File tree Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,18 @@ See the full list of supported operating systems in [Support](./support.md)
16
16
17
17
## Install
18
18
19
+ ### Scripted
20
+
21
+ ``` sh
22
+ curl -Lo- https://raw.githubusercontent.com/eankeen/bpm/main/scripts/install.sh | bash
23
+ ```
24
+
25
+ ### Manual
26
+
19
27
##### 1. Clone ` bpm `
20
28
21
29
``` sh
22
- git clone https://github.com/bpmpm /bpm " ${XDG_DATA_HOME:- $HOME / .local/ share} /bpm/source"
30
+ git clone https://github.com/eankeen /bpm " ${XDG_DATA_HOME:- $HOME / .local/ share} /bpm/source"
23
31
```
24
32
25
33
By default, this installs bpm to ` $HOME/.local/share/bpm/source `
@@ -40,7 +48,7 @@ For `fish`
40
48
41
49
``` fish
42
50
set -gx PATH "${XDG_DATA_HOME:-$HOME/.local/share}/bpm/source/pkg/bin" $PATH
43
- status --is-interactive; and . (bpm init fish | psub)
51
+ source (bpm init fish | psub)
44
52
```
45
53
46
54
And now you're done! Move on to [ Getting Started] ( ./getting-started.md ) to learn the basics
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
+ cloneDir=" ${XDG_DATA_HOME:- $HOME / .local/ share} /bpm/source"
4
+
5
+ if [ -d " $cloneDir " ]; then
6
+ printf " %s" " Error: bpm already installed to '$cloneDir '"
7
+ exit 1
8
+ fi
9
+
10
+ git clone https://github.com/eankeen/bpm " $cloneDir "
11
+
12
+ bashrc=" $HOME /.bashrc"
13
+ if [ -f " $bashrc " ]; then
14
+ cat >> " $bashrc " << -"EOF "
15
+ # bpm
16
+ export PATH="${XDG_DATA_HOME:-$HOME/.local/share}/bpm/source/pkg/bin:$PATH"
17
+ eval "$(bpm init bash)"
18
+ EOF
19
+ fi
20
+
21
+ zshrc=" ${ZDOTDIR:- $HOME / .zshrc} "
22
+ if [ -f " $zshrc " ]; then
23
+ cat >> " $zshrc " << -"EOF "
24
+ # bpm
25
+ export PATH="${XDG_DATA_HOME:-$HOME/.local/share}/bpm/source/pkg/bin:$PATH"
26
+ eval "$(bpm init zsh)"
27
+ EOF
28
+ fi
29
+
30
+ fishrc=" ${XDG_CONFIG_HOME:- $HOME / .config} /fish/config.fish"
31
+ if [ -f " $fishrc " ]; then
32
+ cat >> " $fishrc " << -"EOF "
33
+ # bpm
34
+ set -gx PATH "${XDG_DATA_HOME:-$HOME/.local/share}/bpm/source/pkg/bin" $PATH
35
+ source (bpm init fish | psub)
36
+ EOF
37
+ fi
You can’t perform that action at this time.
0 commit comments