4 ms·
I use zsh's function copy-prev-shell-word. You can bind it to some key, e.g. alt-m with `bindkey "^[m" copy-prev-shell-word`. Use ctrl-v shortcut for another ke
by idoubtit 7y ago
I use zsh's function copy-prev-shell-word. You can bind it to some key, e.g. alt-m with `bindkey "^[m" copy-prev-shell-word`. Use ctrl-v shortcut for another key.
For instance, adding a suffix to a file name: mv myfile alt-m.suffix
- mkl 7y agomv myfile{,.suffix} seems easier and more general, and doesn't need zsh.