Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0rax/fishline
A powerline prompt framework for the fish-shell built in fish-shell.
https://github.com/0rax/fishline
fish fish-packages fish-shell powerline prompt shell
Last synced: 3 days ago
JSON representation
A powerline prompt framework for the fish-shell built in fish-shell.
- Host: GitHub
- URL: https://github.com/0rax/fishline
- Owner: 0rax
- License: mit
- Created: 2014-08-19T02:55:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T22:51:03.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T01:09:28.954Z (3 days ago)
- Topics: fish, fish-packages, fish-shell, powerline, prompt, shell
- Language: Shell
- Homepage:
- Size: 346 KB
- Stars: 81
- Watchers: 6
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A powerline prompt framework for the fish-shell built in fish-shell
## Preview
![fishline_preview](https://raw.githubusercontent.com/0rax/fishline/screenshots/prompt.png "Fishline Preview")
## Requirements
This framework uses a lot of glyph from Powerline fonts in order to work, you will need to install one of them and select it as your shell font to enjoy this software completely. More information about how to install them can be found in the [Powerline wiki](https://powerline.readthedocs.io/en/latest/installation.html#fonts-installation).
## Installation
### Manually
In order to install fishline, you will need to clone this repository somewhere and specify this path in your `config.fish` file as well as sourcing the `init.fish` file present from the repository.
Here is an example on how to do it, by cloning `fishline` in your `~/.config/fish` folder:
```sh
git clone https://github.com/0rax/fishline.git/ ~/.config/fish/fishline
```Then modify your `~/.config/fish/config.fish` and add:
```sh
if status is-interactive
set FLINE_PATH $HOME/.config/fish/fishline
source $FLINE_PATH/init.fish
end
```### Using [Fisher](https://github.com/jorgebucaran/fisher)
This is the easiest way to install `fishline` in your fish-shell environment. Fisher will install it and link all the needed functions for you by running the following command:
```sh
fisher install 0rax/fishline
```This will allow you to use the `fishline` command directly and access to all the possible theming / configuration available as if you installed it manually.
> **NOTE**:
> When installing fishline using Fisher, a file named `fishline-init.fish` will be created in `~/.config/fish/conf.d`.
> If you wish to configure, you should not update this file but instead create a new one to set your configuration variable, just make sure that this file is loaded after it (naming the file `fishline.fish` or `fishline-theme.fish` should work).## Configuration
To use fishline as your prompt, update or create a `fish_prompt.fish` file in your `functions` folder (`~/.config/fish/functions` by default) to include:
```sh
function fish_prompt
fishline -s $status
end
```[More informations about installation and configuration available in the wiki.](https://github.com/0rax/fishline/wiki "Fishline Wiki")
## License
fishline is MIT licensed. See [LICENSE](LICENSE).