mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
Created README, and improved documentation
This commit is contained in:
parent
751a859085
commit
6203b8e957
2 changed files with 71 additions and 56 deletions
48
plugins/cdbk/README.md
Normal file
48
plugins/cdbk/README.md
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
cdbk
|
||||
====
|
||||
|
||||
A simple zsh function to make management of zsh
|
||||
named directories easier. It keeps all named directories in a
|
||||
file and uses grep, sed, echo, and perl to parse and modify
|
||||
this file in order to add, change or remove bookmarks.
|
||||
|
||||
Because it uses the zsh named directory function, full zsh path
|
||||
completion is possible. For example, if you wanted to access the
|
||||
directory ``/Users/me/Work/Project13/Samples/FromEster/July/``
|
||||
and that directory had many subdirectories including the subdirectory
|
||||
``./Revision6/pictures``, you could easily bookmark the parent directory
|
||||
with the command:
|
||||
```
|
||||
cdbk -a ejul /Users/me/Work/Project13/Samples/FromEster/July/
|
||||
```
|
||||
Then, to cd to the subdirectory, just type ``cd ~ejul/Revision6/pictures``,
|
||||
autocompletion will work too.
|
||||
|
||||
This file also provides the function ``folder_name()``, which returns
|
||||
a formatted list of the names of the current folder for use in
|
||||
a prompt. To include the folder name in your prompt use e.g.:
|
||||
``export PROMPT=$PROMPT $(folder_name)``
|
||||
|
||||
Very simple cdbk completion is included to make replacing and
|
||||
deleting bookmarks easier.
|
||||
|
||||
This program was heavily inspired by Stan Angeloff's function
|
||||
of the same name found here:
|
||||
http://blog.angeloff.name/post/1027007406/cd-with-bookmarks-and-auto-completion-for-zsh
|
||||
|
||||
```
|
||||
Usage: cdbk {-a,-r,-d,-l} <name> [path] (run with no paramaters for info)
|
||||
-a: Create bookmark (uses current dir if no path)
|
||||
-r: Replace bookmark (uses current dir if no path)
|
||||
-d: Delete bookmark
|
||||
-l: List all currently enabled bookmarks
|
||||
```
|
||||
Requirements: Needs to be sourced from a zsh startup file, or use oh-my-zsh
|
||||
|
||||
Created by: Mike Dacre
|
||||
|
||||
Created on: 19-11-11
|
||||
|
||||
Version: 1.1
|
||||
|
||||
License: MIT License - Open Source. Use as you wish
|
||||
Loading…
Add table
Add a link
Reference in a new issue