From 8d08f1634a7b9782e3722ce770e8630f569afe3f Mon Sep 17 00:00:00 2001 From: Pavol Juhas Date: Thu, 27 Aug 2020 00:44:25 -0700 Subject: scd: update to 1.4.0 (#9066) --- plugins/scd/README.md | 54 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 9 deletions(-) (limited to 'plugins/scd/README.md') diff --git a/plugins/scd/README.md b/plugins/scd/README.md index 8c156da1f..d8535f9f2 100644 --- a/plugins/scd/README.md +++ b/plugins/scd/README.md @@ -14,8 +14,9 @@ directory aliases, which appear as named directories in zsh session. ## INSTALLATION NOTES Besides oh-my-zsh, `scd` can be used with *bash*, *dash* or *tcsh* -shells and is also available as [Vim](https://www.vim.org/) plugin and -[IPython](https://ipython.org/) extension. For installation details, see +shells and is also available as Vim plugin +[scd.vim](https://github.com/pavoljuhas/scd.vim) and +[IPython](https://ipython.org) extension. For installation details, see https://github.com/pavoljuhas/smart-change-directory. ## SYNOPSIS @@ -24,11 +25,31 @@ https://github.com/pavoljuhas/smart-change-directory. scd [options] [pattern1 pattern2 ...] ``` +## PATTERNS + +Patterns may use all zsh [glob operators]( +http://zsh.sourceforge.net/Doc/Release/Expansion.html#Glob-Operators) +available with *extendedglob* option. Specified patterns must match +the absolute path and at least one of them must match in the tail. +Several special patterns are also recognized as follows: + +
+^PAT
+ PAT must match at the beginning of the path, for example, "^/home"
+PAT$
+ require PAT to match the end of the path, "man$"
+./
+ match only subdirectories of the current directory
+:PAT
+ require PAT to match over the tail component, ":doc", ":re/doc"
+
+ + ## OPTIONS
-a, --add
- add specified directories to the directory index.
+ add current or specified directories to the directory index.
--unindex
remove current or specified directories from the index.
@@ -42,11 +63,16 @@ scd [options] [pattern1 pattern2 ...] --unalias
remove ALIAS definition for the current or specified directory from - ~/.scdalias.zsh.
+ ~/.scdalias.zsh. Use "OLD" to purge aliases to non-existent + directories.
-A, --all
- include all matching directories. Disregard matching by directory - alias and filtering of less likely paths.
+ display all directories even those excluded by patterns in + ~/.scdignore. Disregard the unique matching for a + directory alias and filtering of less likely paths.
+ +-p, --push
+ use "pushd" to change to the target directory.
--list
show matching directories and exit.
@@ -58,6 +84,7 @@ scd [options] [pattern1 pattern2 ...] display this options summary and exit.
+ ## Examples ```sh @@ -83,17 +110,26 @@ scd --alias=xray scd xray ``` -# FILES +## FILES
~/.scdhistory
time-stamped index of visited directories.
~/.scdalias.zsh
- scd-generated definitions of directory aliases.
+ scd-generated definitions of directory aliases.
+ +~/.scdignore
+ + glob patterns for paths to be ignored in the scd search, for example, + /mnt/backup/*. The patterns are specified one per line + and are matched assuming the extendedglob zsh option. Lines + starting with "#" are skipped as comments. The .scdignore patterns + are not applied in the --all mode.
-# ENVIRONMENT + +## ENVIRONMENT
SCD_HISTFILE
-- cgit v1.2.3-70-g09d2