Package: ondir / 0.2.3+git0.55279f03-1

0001-Add-information-on-Debian-integration-to-manpage.patch Patch series | download
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
74
75
76
77
78
79
80
81
82
83
84
85
From: Christian Seiler <christian@iwakd.de>
Date: Wed, 30 Nov 2016 00:54:47 +0100
Subject: Add information on Debian integration to manpage.

The current manpage still assumes that the software is compiled from
source by the user, making the steps to enable ondir more complicated
than need by when using the Debian package.

Replace the instructions with those proposed in README.Debian.
---
 ondir.1 | 55 +++++++++++++++++--------------------------------------
 1 file changed, 17 insertions(+), 38 deletions(-)

diff --git a/ondir.1 b/ondir.1
index e92cdac..7d5d253 100644
--- a/ondir.1
+++ b/ondir.1
@@ -76,46 +76,23 @@ leave /home/athomas/projects/myproject
 	PATH=`echo $PATH | sed \-e "s,:$CWD/bin,,g"`
 .SH "SCRIPTS"
 .LP 
-The BASH script you should add to your profile is:
-.LP 
-cd()
-.br 
-{
-.br 
-    builtin cd "$@" && eval "`ondir \\"$OLDPWD\\" \\"$PWD\\"`"
-.br 
-}
-.br 
-.br 
-pushd()
-.br 
-{
-.br 
-    builtin pushd "$@" && eval "`ondir \\"$OLDPWD\\" \\"$PWD\\"`"
-.br 
-}
-.br 
-.br 
-popd()
-.br 
-{
-.br 
-    builtin popd "$@" && eval "`ondir \\"$OLDPWD\\" \\"$PWD\\"`"
-.br 
-}
-.br 
-.br 
-eval "`ondir /`"
-.br 
+On Debian systems the integration scripts are installed in \fI/usr/share/ondir/integration\fR to simplify integration into one's own shell. To enable ondir, one needs to include these files in the shells startup.
+.LP
+When using \fBbash\fR, add the following to your \fI~/.bashrc\fR:
 .LP 
-The TCSH script you should add to your profile is:
+source /usr/share/ondir/integration/bash
+.LP
+When using \fBzsh\fR, add the following to your \fI~/.zshrc\fR:
 .LP 
-alias cwdcmd eval \`ondir \-t \$owd \$cwd\` 
-.br 
-.br 
-# Run ondir on login
-.br 
-eval `ondir \-t /`
+source /usr/share/ondir/integration/zsh
+.LP
+When using \fBfish\fR, run the following commands:
+.LP
+mkdir -p ~/.config/fish/conf.d
+.br
+ln -s /usr/share/ondir/integration/fish \\
+.br
+      ~/.config/fish/conf.d/ondir_prompt_hook.fish
 .br 
 .SH "AUTHORS"
 .LP 
@@ -128,3 +105,5 @@ devtodo(1) \fI<http://swapoff.org/DevTodo>\fR
 \fBondir\fR also has the ability to execute scripts in the directories being traversed. These scripts are named \fB.onenter\fR and \fB.onleave\fR. This ability is disabled by default, but can be enabled by editing conf.h and uncommenting:
 .LP
 #define USE_ONENTERLEAVE
+.LP
+This functionaliy is disabled in the Debian package for security reasons.