Skip to content

Instantly share code, notes, and snippets.

@pgrepds
Created May 29, 2022 23:41
Show Gist options
  • Save pgrepds/5eca42a14d27b83c8ea82d861bd0f919 to your computer and use it in GitHub Desktop.
Save pgrepds/5eca42a14d27b83c8ea82d861bd0f919 to your computer and use it in GitHub Desktop.
Fish terminal window title bar: reflect up to 4 subpaths
Create a file named `fish_title.fish` ins `~/.config/fish/functions` and add the following content.
```bash
function fish_title
set -q argv[1]; or set argv fish
echo (fish_prompt_pwd_dir_length=4 prompt_pwd): $argv;
end
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment