Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne authored Sep 2, 2017
1 parent b4bec46 commit 5eba4e7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ I provide precompiled binaries for x64 Linux and macOS in the

### Other Platforms

- Set your GOPATH (otherwise the package will be installed in $HOME/go/bin/)

- Download and install the package
- Install (and update) the package with

```
go get github.com/justjanne/powerline-go
go get -u github.com/justjanne/powerline-go
```

- Move it to a convenient place (for example, `~/.powerline/powerline-go`)
- By default it will be in `~/go/bin`, if you want to change that, you can set
your `$GOPATH` and/or `$GOBIN`, but will need ot change the path in the
following scripts, too.

### Bash

Add the following to your `.bashrc` (or `.profile` on Mac):

```
function _update_ps1() {
PS1="$(~/.powerline/powerline-go -error $?)"
PS1="$(~/go/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ]; then
Expand All @@ -92,7 +92,7 @@ Add the following to your `.zshrc`:

```
function powerline_precmd() {
PS1="$(~/.powerline/powerline-go -error $? -shell zsh)"
PS1="$(~/go/bin/powerline-go -error $? -shell zsh)"
}
function install_powerline_precmd() {
Expand All @@ -115,7 +115,7 @@ Redefine `fish_prompt` in `~/.config/fish/config.fish:`

```
function fish_prompt
~/.powerline/powerline-go -error $status -shell bare
~/go/bin/powerline-go -error $status -shell bare
end
```

Expand Down

0 comments on commit 5eba4e7

Please sign in to comment.