[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem when editing cmd-line with external editor
From: |
Michael Naumann |
Subject: |
Problem when editing cmd-line with external editor |
Date: |
Sat, 19 Jul 2003 12:15:56 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I.
-I/home/doko/packages/bash/bash-2.05a
-I/home/doko/packages/bash/bash-2.05a/include
-I/home/doko/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux strullnb 2.4.20 #2 Wed Mar 26 19:56:44 CET 2003 i686 unknown
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
When invoking an external editor in "set -o vi"-mode and issuing a "cd
anywhere"-command,
the PS1 is updated delayed
Repeat-By:
start an interactive bash-session
set the PS1 to something that shows the cwd, such as
PS1="\u@\h:\w\$"
now switch to vi-mode and setup your favourite editor
set -o vi
alias vi=vim
or
alias vi=vile
(I guess, it does not really depend on the actual editor)
Now type "<ESC>v" to start the external editor
whithin this editor enter, e.G
cd /tmp
leave the editor with ZZ or :wq
You are back in bash now.
Watch your prompt. It still is unchanged, the new path (/tmp) is not
reflected.
Now hit <CR>, the prompt changes.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problem when editing cmd-line with external editor,
Michael Naumann <=