Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.1] - 2021-08-31

- Print new line before & after the output of each prompt
- Minor doc corrections

## [1.0.0] - 2021-07-25

Initial release.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Screenshot of Gills showing the empty line after the command and the command output](./gills.png)

Gills is a very simple Fish shell plugin that adds an empty line after your prompt and before the output of your command to balance the whitespace around them so you can more easily separate your prompts from your command output while skimming your terminal’s scrollback buffer.
Gills is a very simple Fish shell plugin that adds an empty line after your prompt and the output of your command to balance the whitespace around them so you can more easily separate your prompts from your command output while skimming your terminal’s scrollback buffer.

It also handles a couple of special cases like `cd`, `pushd`, and `popd` that do not produce any output. In those cases, it doesn’t add the additional empty line. If you find any other edge cases, please feel free to open an issue or a pull request.

Expand All @@ -18,7 +18,7 @@ fisher install small-tech/gills

## How it works

Technically, like basically everything else in Fish shell, [it’s just a function](https://zerokspot.com/weblog/2016/01/16/fishy-functions/) that handles Fish shell’s `fish_postexec` event.
Technically, like basically everything else in Fish shell, [it’s just a function](https://zerokspot.com/weblog/2016/01/16/fishy-functions/) that handles Fish shell’s `fish_preexec` & `fish_postexec` events.

## Like this? Fund us!

Expand Down
4 changes: 2 additions & 2 deletions conf.d/gills.fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Unless its a command known to not produce output,
# leave an empty space before the command to better
# leave an empty space around the command to better
# delinate the command output from the command itself.
function add_empty_line --on-event fish_preexec
function add_empty_line --on-event fish_preexec --on-event fish_postexec
if not string match -r -q 'cd.*|popd.*|pushd.*' $argv
printf '\n'
end
Expand Down