Defining a shell alias `src` somehow conflicts with `try` and launches try instead
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 4k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
Adding:
eval $(try init "Users/rushjj1/try")
to .zshrc in order for try to work properly causes the word src to be an alias for try
Even if you do this:
unalias src 2>/dev/null || true
unset -f src 2>/dev/null || true
src() {
builtin source ~/.zshrc
}
running src will still launch try
try should be the only thing added to the shell space.
Removing try prevents the shell naming pollution. Removing the eval line from .zshrc also prevents the naming pollution but of course try doesn't work without those.
this was with installing both ruby and try via homebrew
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in zsh with the .zshrc eval $(try init "Users/rushjj1/try") line and the shown src function. Inspect the shell code used by the try init entry point to determine why src is claimed; done means initialization adds only try-related names and leaves src available for the user's function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, zsh
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100