zsh-users
 help / color / mirror / code / Atom feed
* Is there any possible way to automatically escape characters when executing an alias in zsh?
@ 2021-09-11 18:41 Steve Dondley
  2021-09-11 19:00 ` zzapper
  2021-09-11 19:16 ` Peter Stephenson
  0 siblings, 2 replies; 16+ messages in thread
From: Steve Dondley @ 2021-09-11 18:41 UTC (permalink / raw)
  To: Zsh users

I have many aliases set up for taskwarrior in zsh:

alias tasn="task +sn add"`

On the command line, I'll type in:

tasn some task description here

Which works unless I put in single quote or some other character:

tasn call Tom's friend

This will thrown an error unless I escape the apostrophe.

I don't want to turn these into functions because then I lose the 
autocomplete capabilities. I'm wondering if there might be some neat 
trick that will allow me to automatically escape apostrophes (and other 
problematic characters) in the task description.

Thanks.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-09-12  3:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 18:41 Is there any possible way to automatically escape characters when executing an alias in zsh? Steve Dondley
2021-09-11 19:00 ` zzapper
2021-09-11 19:16 ` Peter Stephenson
2021-09-11 19:28   ` Peter Stephenson
2021-09-11 20:45     ` Steve Dondley
2021-09-11 20:53       ` Peter Stephenson
2021-09-11 21:01         ` Steve Dondley
2021-09-11 22:39           ` Lawrence Velázquez
2021-09-11 23:15             ` Steve Dondley
2021-09-12  0:23               ` Bart Schaefer
2021-09-12  1:27                 ` Steve Dondley
2021-09-12  2:26                   ` Bart Schaefer
2021-09-12  3:02                     ` Steve Dondley
2021-09-11 23:17             ` Bart Schaefer
2021-09-11 23:33               ` Steve Dondley
2021-09-12  3:33               ` Ray Andrews

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).