Timeline for Alternative of bash's `history -p` in zsh?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 7, 2018 at 10:47 | history | edited | Rui F Ribeiro | CC BY-SA 4.0 | Please try to keep answers on-topic |
| Sep 4, 2018 at 17:54 | comment | added | Luciano Andress Martini | I cant imagine the results you want to got. I just received "History Expansion Failed" (in bash). Can you post in you question what you have, and what exactly you want to get or do? Thank you. Maybe i have a easy solution! | |
| Sep 4, 2018 at 17:49 | comment | added | HappyFace | Thanks, but I need more sophisticated behavior; I wanted to run history -p '^(#b)E(?)^E${(l:2::0:)$((match[1]+1))}'. I wrote that function using fc in the end. | |
| Sep 3, 2018 at 15:04 | comment | added | Luciano Andress Martini | I tried but nothing happens =(. Try history -p !23 instead of history -p '!23'... for what is really that ? =( | |
| Sep 3, 2018 at 15:02 | comment | added | Stéphane Chazelas | ITYM history -p '!23'. In zsh, just use print -r -- $history[23] | |
| Sep 3, 2018 at 14:57 | history | answered | Luciano Andress Martini | CC BY-SA 4.0 |