In the zsh programming language,
how do I get the entire list of arguments as a string in "" ?
i.e. in
myzshcommand 1 2 3 foo bar
I want something to match me "1 2 3 foo bar"
Thanks!
In the zsh programming language,
how do I get the entire list of arguments as a string in "" ?
i.e. in
myzshcommand 1 2 3 foo bar
I want something to match me "1 2 3 foo bar"
Thanks!
Have you tried using $@
?
I have a local directory with executable in it (e.g. foo_dir/bin/bar). I typed "foo", but foo_dir wasn t suggested. What cames out is other program in $PATH (such as bootlogd). How should I config ...
Suppose I have: alias gg="git grep" then stuff like: gg "int x" works, but gg int x gets complaints. Is there a way to rewrite gg as a function in zsh so that it takes all the arguments after ...
In the zsh programming language, how do I get the entire list of arguments as a string in "" ? i.e. in myzshcommand 1 2 3 foo bar I want something to match me "1 2 3 foo bar" Thanks!
I have a script which executes a git-pull when I log in. The problem is, if I su to a different user and preserve my environment with an su -lp, the script gets run again and usually gets messed up ...
I want to use a feature only present in newer versions of zsh: [[ "$foo" =~ "regexp" ]] where regexp is a regular expression. Is it possible to do this check? Something like: if [[ $ZSH_VERSION &...
I have a directory filled with files with random names. I d like to be able to rename them file 1 file 2 etc based on chronological order, ie file creation date. I could be writing a short Python ...
I have spent sometime trying to pick one, on net comparisons are for zsh vs bash and fish vs bash. But, I could not find any comparison for zsh vs fish. I program in C and C++, apart from hello-world ...
I currently have my ZSH PROMPT variable set up as: PROMPT=$ [%{e[0;32m%}%n@%m:%~%{e[0m%}]> and my RPROMPT variable as: RPROMPT=$ [%{e[0;32m%}%Te[0m%}] The effect I m working for is to make ...