You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,8 @@ This prompt has been tested on numerous Linux and BSD distributions, as well as
56
56
<details>
57
57
<summary>Here are the latest features and updates.</summary>
58
58
59
+
- v3.9.0
60
+
- The characters used to signify path abbreviation with `AGKOZAK_PROMPT_DIRTRIM` (`...` by default) can now be overridden with `AGKOZAK_PROMPT_DIRTRIM_STRING`.
59
61
- v3.8.1 (November 23, 2020)
60
62
- WSL2 now uses the `subst-async` method, while WSL1 continues to use `usr1` for reasons of speed.
61
63
- The error message `permission denied: /proc/version` is no longer produced in `termux` on Android.
@@ -228,6 +230,12 @@ if you have executed
228
230
229
231
then `/var/www/html/wp-content` will appear in the prompt as `wp-content`, and `/var/www/html/wp-content/plugins/redirection/actions` will be represented as `~wp-content/.../redirection/actions`. If you prefer to have named directories displayed just like any others, set `AGKOZAK_NAMED_DIRS=0`.
230
232
233
+
If you want to use a string other than `...` to signify that a path has been abbreviated, you may specify it using `AGKOZAK_PROMPT_DIRTRIM_STRING`. For example,
234
+
235
+
AGKOZAK_PROMPT_DIRTRIM_STRING=$'\u2026'
236
+
237
+
will replace the default three dots (`...`) with a Unicode ellipsis (`…`), which can free up a little screen space if your terminal font supports it.
[`AGKOZAK_PRE_PROMPT_CHAR`](#optional-single-line-prompt) | `` | For a single-line prompt, the character or characters to display before the prompt character
693
701
[`AGKOZAK_PROMPT_DEBUG`](#asynchronous-methods) | `0` | Show debugging information
694
702
[`AGKOZAK_PROMPT_DIRTRIM`](#abbreviated-paths) | `2` | Number of directory elements to display; `0` turns off directory trimming
703
+
[`AGKOZAK_PROMPT_DIRTRIM_STRING`] | `...` | Ellipsis string used in directory trimming
0 commit comments