Skip to content

Commit 72ad693

Browse files
sheepman4267EbonJaeger
authored andcommitted
docs/user/software/command-line: Clean up powerline instructions
- Remove incorrect directions for dash - Fix directions for fish - Add paths to config files which will be suitable for new users - Remove reference to software center - Put the powerline-daemon command in each shell's example Fixes #685
1 parent 27ce0d1 commit 72ad693

1 file changed

Lines changed: 7 additions & 20 deletions

File tree

docs/user/software/command-line/index.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -128,47 +128,34 @@ FZF_KEYBINDING_FILE=/usr/share/fzf/key-bindings.zsh
128128
### Installation
129129

130130
Powerline has two components, the plugin system itself `powerline` and the
131-
fonts `powerline-fonts`. Both are available in the Software Center or via `eopkg` in a terminal:
131+
fonts `powerline-fonts`. Both are available via `eopkg` in a terminal:
132132

133133
```bash
134134
sudo eopkg it powerline powerline-fonts
135135
```
136136

137-
To get powerline working inside your terminal, you need to add the following commands to the `.bashrc` inside your `$HOME` directory.
138-
139-
### Shell Prompts
140-
141-
The Powerline daemon is not running automatically by any of the bindings. It is advised to add the following before any other powerline-related code in the shell configuration file
142-
143-
```bash
144-
powerline-daemon -q
145-
```
137+
To get powerline working inside your terminal, you need to follow setup instructions for your preferred shell:
146138

147139
#### Bash
148-
140+
Add the following to `$HOME/.bashrc`:
149141
```bash
150142
powerline-daemon -q
151143
POWERLINE_BASH_CONTINUATION=1
152144
POWERLINE_BASH_SELECT=1
153145
source /usr/lib/python3.12/site-packages/powerline/bindings/bash/powerline.sh
154146
```
155147

156-
#### Busybox and dash
157-
158-
```bash
159-
source /usr/lib/python3.12/site-packages/powerline/bindings/shell/powerline.sh
160-
```
161-
162148
#### Fish
163-
149+
Add the following to `$HOME/.config/fish/config.fish` below the comment "`# Commands to run in interactive sessions can go here`":
164150
```bash
151+
powerline-daemon -q
165152
set fish_function_path $fish_function_path "/usr/lib/python3.12/site-packages/powerline/bindings/fish/"
153+
powerline-setup
166154
```
167155

168156
#### Zsh
169-
157+
Add the following to `$HOME/.zshrc`:
170158
```bash
171159
source /usr/lib/python3.12/site-packages/powerline/bindings/zsh/powerline.zsh
172160
```
173161

174-
Read more about powerline on its [docs website](https://powerline.readthedocs.io/en/master/usage.html#shell-prompts-requirements)

0 commit comments

Comments
 (0)