Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Any way to have ".sh" be optional?
- X-seq: zsh-users 18004
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Zsh-Users List <zsh-users@xxxxxxx>
- Subject: Any way to have ".sh" be optional?
- Date: Thu, 26 Sep 2013 16:12:39 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=oVWMCnfZ+cOE70kdrF0rBCL0liq1+8GSoNBUmPxsQmE=; b=hzix5HDyHQABXzPknlcEt6AISaOp6xsh0j1mgMeOqJtYFRnkCUJZJ/VxdzsRlz77KV gUo2VpQ8RYAT1rrvQ2nxnOmJ9uOaecPzjRqjXZgrIkbV7bTFT9+I6YzA5bJXwioAlRPg P8/4p1yaIGomoPTsikazQdB5PVwhbV8msZCkd78yOQJbnkHUOchbgfWK77yiVtRB3vK0 OjG1XZjzZhvRToOjcP9YLw08YW8WGgvSfaU88LQM7cEdfucOZUeQJ0hv3sjKVglHld0Q yuge7ondqVus2c4uLcZyR2yevNV/vBuOg6CUY9L5/8dYr8xHQfKPY+ztpC4rD5SpEC8b SR9g==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
The Subject line may not be the best description of what I want, but
it was the best I could come up with.
I tend to name all of my Zsh scripts to end with '.sh' so I can easily
`fgrep -i Whatever *.sh` when I'm looking for something.
However, I would rather not have to type the ".sh" if not necessary.
(Yes, I am that lazy.)
So assume I have a script "mkseries.sh" which I do not want to rename
but which I want to use in zsh just by typing "mkseries" -- is there a
way to tell zsh "If I use the command 'foo' and there is no 'foo' but
there is 'foo.sh' then I want to use 'foo.sh'?
As always, thanks for your time,
Tj
ps - I am only asking about this when using Zsh in Terminal as my
login shell; in shell scripts I don't mind adding the ".sh"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author