Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md: Syntax Highlight Code Snippets #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ python setup.py install

Add the following to your `.bashrc` file:

```
```bash
function _update_ps1() {
PS1=$(powerline-shell $?)
}
Expand All @@ -121,7 +121,7 @@ order of precedence, see the section **INVOCATION** in `man bash`.

Add the following to your `.zshrc`:

```
```zsh
function powerline_precmd() {
PS1="$(powerline-shell --shell zsh $?)"
}
Expand All @@ -144,7 +144,7 @@ fi

Redefine `fish_prompt` in ~/.config/fish/config.fish:

```
```fish
function fish_prompt
powerline-shell --shell bare $status
end
Expand All @@ -154,7 +154,7 @@ end

Add the following to your `.tcshrc`:

```
```tcsh
alias precmd 'set prompt="`powerline-shell --shell tcsh $?`"'
```

Expand Down Expand Up @@ -213,7 +213,7 @@ and the output of the command will be put into your prompt. `env` takes an
environment variable and the value of the variable will be set in your prompt.
For example, your config could look like this:

```
```json
{
"segments": [
"cwd",
Expand Down