From 8a2e1006b3b272126332aa064f3ad95387129544 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 13 Feb 2025 14:13:49 +0530 Subject: new dot files --- .../zsh/oh-my-zsh/plugins/shrink-path/README.md | 116 +++++++++++++ .../plugins/shrink-path/shrink-path.plugin.zsh | 182 +++++++++++++++++++++ 2 files changed, 298 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/plugins/shrink-path/README.md create mode 100644 .config/zsh/oh-my-zsh/plugins/shrink-path/shrink-path.plugin.zsh (limited to '.config/zsh/oh-my-zsh/plugins/shrink-path') diff --git a/.config/zsh/oh-my-zsh/plugins/shrink-path/README.md b/.config/zsh/oh-my-zsh/plugins/shrink-path/README.md new file mode 100644 index 0000000..71a242b --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/shrink-path/README.md @@ -0,0 +1,116 @@ +# shrink-path + +A plugin to shrink directory paths for brevity and pretty-printing. + +To use it, add `shrink-path` to the plugins array in your zshrc file: + +```zsh +plugins=(... shrink-path) +``` + +## Examples + +For this directory tree: +``` +/home/ + me/ + f o o/ # The prefix f is ambiguous between "f o o" and "f i g". + bar/ + quux/ + biz/ # The prefix b is ambiguous between bar and biz. + f i g/ + baz/ +``` +here are the results of calling `shrink_path