1

in bash, if i enter:

mkdir /tmp/foo
cd !$

bash substitutes /tmp/foo for the bang-dollar, and executes the command

if i do the same in zsh, zsh fills in /tmp/foo for the bang-dollar and shows me the resulting command, pausing to let me again hit before executing:

mkdir /tmp/foo           
cd !$     
cd /tmp/foo # command prompt at the end of this line

but i don't want to do see a preview, i want it to do what bash did.

is there a way to un-preview in zsh?

unkulunkulu
  • 11,576
  • 2
  • 31
  • 49
zasu pitts
  • 23
  • 2

1 Answers1

0

It sounds like you have the HIST_VERIFY option set; you can disable it with

setopt NO_HIST_VERIFY
chepner
  • 497,756
  • 71
  • 530
  • 681