Minor fix-ups and adjustments
This commit is contained in:
parent
a0eacf4607
commit
bbd23187bc
|
@ -48,7 +48,7 @@ into the PATH of any machine you want to have 'sdn' on.
|
||||||
Integration
|
Integration
|
||||||
-----------
|
-----------
|
||||||
The package contains an installation script called 'sdn-install' which will bind
|
The package contains an installation script called 'sdn-install' which will bind
|
||||||
'sdn' to M-o in your shell's initialisation file. The supported shells are:
|
'sdn' to Alt-o in your shell's initialisation file. The supported shells are:
|
||||||
|
|
||||||
- *zsh*: works well
|
- *zsh*: works well
|
||||||
- *bash*: minor issue: exiting the navigator confirms an empty prompt
|
- *bash*: minor issue: exiting the navigator confirms an empty prompt
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
zsh() {
|
zsh() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
sdn-navigate () {
|
sdn-navigate () {
|
||||||
# ... possibly zle-line-finish
|
# optionally: zle zle-line-finish
|
||||||
while eval "`SDN=1 sdn "$BUFFER" "$CURSOR"`"
|
while eval "`SDN=1 sdn "$BUFFER" "$CURSOR"`"
|
||||||
do
|
do
|
||||||
[ -z "$cd" ] || cd "$cd"
|
[ -z "$cd" ] || cd "$cd"
|
||||||
|
@ -18,7 +18,7 @@ sdn-navigate () {
|
||||||
|
|
||||||
/bin/sh -c "$helper" </dev/tty || break
|
/bin/sh -c "$helper" </dev/tty || break
|
||||||
done
|
done
|
||||||
# ... possibly zle-line-init
|
# optionally: zle zle-line-init
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ if [ -z "$shell" ]
|
||||||
then
|
then
|
||||||
if [ "$login" != "$actual" ]
|
if [ "$login" != "$actual" ]
|
||||||
then
|
then
|
||||||
echo "Conflict between login ($actual) and invoking ($actual) shell."
|
echo "Conflict between login ($login) and invoking ($actual) shell."
|
||||||
echo "Specify the shell with the -s option."
|
echo "Specify the shell with the -s option."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue