-
Notifications
You must be signed in to change notification settings - Fork 0
/
man
73 lines (73 loc) · 1.31 KB
/
man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.TH bm 1 22.02.2016
.SH NAME
bm \- POSIX compliant bookmarking system for shell
.SH SYNOPSIS
.B bm
[\fBls\fR]
[\fBadd\fR]
[\fBrm\fR \fIbookmark\fR]
.IR bookmark ...
.SH DESCRIPTION
.B bm
can be used to create new bookmarks pointing to a directory, jump to
a specified bookmark, remove an existing bookmark and list existing
bookmarks.
.SH OPTIONS
Without options go to \fIbookmark\fR. Description of available options:
.TP
.BR ls
List existing bookmarks
.TP
.BR add " " \fINAME\fR
Add a new bookmark named \fINAME\fR. \fINAME\fR must match \fI^[a-zA-Z0-9_]+$\fR regex
.TP
.BR rm " " \fINAME\fR
Remove bookmark named \fINAME\fR
.SH EXAMPLE
Source \fIbm.sh\fR in your shell startup file. Then:
.BR
$ mkdir /tmp/test-dir/
$ cd /tmp/test-dir/
$ bm add first_bookmark
$ bm ls
/tmp/test-dir first_bookmark
$ cd ~ja
$ pwd
/home/ja
$ bm first_bookmark
$ pwd
/tmp/test-dir
$ bm rm first_bookmark
$ bm ls
$
.SH EXIT CODES
.TP
.BR 1
Requested bookmark does not exist
.TP
.BR 2
cd command failed
.TP
.BR 3
Name of a bookmark to add missing
.TP
.BR 4
A bookmark to add already exists
.TP
.BR 5
Incorrect name of a bookmark to add
.TP
.BR 6
Name of a bookmark to remove missing
.TP
.BR 7
Bookmark to remove not found
.TP
.BR 8
Failed to read $bm_config
.TP
.BR 9
Argument missing
.SH AUTHORS
.TP
Arkadiusz Drabczyk <[email protected]>