Peter's zsh configuration files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

last-cmd-as-expansion 170B

12345678910
  1. #!zsh
  2. last_command='$('`fc -l -1|sed 's/ *[0-9]* *//'`')'
  3. if [[ -z $BUFFER ]]; then
  4. BUFFER=" $last_command"
  5. CURSOR=0
  6. else
  7. BUFFER="$BUFFER $last_command"
  8. fi