Created
May 29, 2022 23:41
-
-
Save pgrepds/5eca42a14d27b83c8ea82d861bd0f919 to your computer and use it in GitHub Desktop.
Fish terminal window title bar: reflect up to 4 subpaths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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