7

zshell frequent command "template": remove parameter expansion escape characters

view full story
linux-howto

http://unix.stackexchange.com – zsh newbie here... I find myself using a handful of long commands over and over again with slightly different arguments. For example: rsync -havu --progress --rsh='ssh -l mylogin' some.machine.somewhere:/some/path /some/local/path I'd like to be able to easily insert that command at my zsh prompt, and then navigate the command line to make the necessary changes to paths, hosts, and logins. I set up a zsh parameter: FOO="rsync -havu --progress --rsh='ssh -l mylogin' some.machine.somewhere:/some/path /some/local/path" Then I can expand $FOO at the prompt. However, the expanded command has (HowTos)