| 1 |
From: Christian Seiler <[email protected]> |
| 2 |
Date: Wed, 30 Nov 2016 00:54:47 +0100 |
| 3 |
Subject: Add information on Debian integration to manpage. |
| 4 |
|
| 5 |
The current manpage still assumes that the software is compiled from |
| 6 |
source by the user, making the steps to enable ondir more complicated |
| 7 |
than need by when using the Debian package. |
| 8 |
|
| 9 |
Replace the instructions with those proposed in README.Debian. |
| 10 |
--- |
| 11 |
ondir.1 | 55 +++++++++++++++++-------------------------------------- |
| 12 |
1 file changed, 17 insertions(+), 38 deletions(-) |
| 13 |
|
| 14 |
diff --git a/ondir.1 b/ondir.1 |
| 15 |
index e92cdac..7d5d253 100644 |
| 16 |
--- a/ondir.1 |
| 17 |
+++ b/ondir.1 |
| 18 |
@@ -76,46 +76,23 @@ leave /home/athomas/projects/myproject |
| 19 |
PATH=`echo $PATH | sed \-e "s,:$CWD/bin,,g"` |
| 20 |
.SH "SCRIPTS" |
| 21 |
.LP |
| 22 |
-The BASH script you should add to your profile is: |
| 23 |
-.LP |
| 24 |
-cd() |
| 25 |
-.br |
| 26 |
-{ |
| 27 |
-.br |
| 28 |
- builtin cd "$@" && eval "`ondir \\"$OLDPWD\\" \\"$PWD\\"`" |
| 29 |
-.br |
| 30 |
-} |
| 31 |
-.br |
| 32 |
-.br |
| 33 |
-pushd() |
| 34 |
-.br |
| 35 |
-{ |
| 36 |
-.br |
| 37 |
- builtin pushd "$@" && eval "`ondir \\"$OLDPWD\\" \\"$PWD\\"`" |
| 38 |
-.br |
| 39 |
-} |
| 40 |
-.br |
| 41 |
-.br |
| 42 |
-popd() |
| 43 |
-.br |
| 44 |
-{ |
| 45 |
-.br |
| 46 |
- builtin popd "$@" && eval "`ondir \\"$OLDPWD\\" \\"$PWD\\"`" |
| 47 |
-.br |
| 48 |
-} |
| 49 |
-.br |
| 50 |
-.br |
| 51 |
-eval "`ondir /`" |
| 52 |
-.br |
| 53 |
+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. |
| 54 |
+.LP |
| 55 |
+When using \fBbash\fR, add the following to your \fI~/.bashrc\fR: |
| 56 |
.LP |
| 57 |
-The TCSH script you should add to your profile is: |
| 58 |
+source /usr/share/ondir/integration/bash |
| 59 |
+.LP |
| 60 |
+When using \fBzsh\fR, add the following to your \fI~/.zshrc\fR: |
| 61 |
.LP |
| 62 |
-alias cwdcmd eval \`ondir \-t \$owd \$cwd\` |
| 63 |
-.br |
| 64 |
-.br |
| 65 |
-# Run ondir on login |
| 66 |
-.br |
| 67 |
-eval `ondir \-t /` |
| 68 |
+source /usr/share/ondir/integration/zsh |
| 69 |
+.LP |
| 70 |
+When using \fBfish\fR, run the following commands: |
| 71 |
+.LP |
| 72 |
+mkdir -p ~/.config/fish/conf.d |
| 73 |
+.br |
| 74 |
+ln -s /usr/share/ondir/integration/fish \\ |
| 75 |
+.br |
| 76 |
+ ~/.config/fish/conf.d/ondir_prompt_hook.fish |
| 77 |
.br |
| 78 |
.SH "AUTHORS" |
| 79 |
.LP |
| 80 |
@@ -128,3 +105,5 @@ devtodo(1) \fI<http://swapoff.org/DevTodo>\fR |
| 81 |
\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: |
| 82 |
.LP |
| 83 |
#define USE_ONENTERLEAVE |
| 84 |
+.LP |
| 85 |
+This functionaliy is disabled in the Debian package for security reasons. |