Comments (7)
if a xonsh user wants this behavior, they can $PATH.insert(0, '.') (on any platform).
@jaraco may be we need to add this to docs? E.g. Platform-specific tips and tricks - Windows
from xonsh.
Yeah, those were different times 😅
I'm happy to drop this behavior, move it to a xontrib or hide behind a configuration. For maintenance, I think the best would be a xontrib if people want it. I certainly don't need or use it for now.
I'll check the sudo implementation to remember what was going on but arguably, that should be in a xontrib too. Thoughts?
from xonsh.
Just checked the sudo alias and TBH I think it is actually quite confusing if for people who want a unified experience. Don't know why we thought it was a good idea to bake in. I guess we didn't have xontribs back then so we didn't have a better way to share this around?
from xonsh.
I'm happy to drop this behavior, move it to a xontrib or hide behind a configuration.
The linked PR #5477 just removes it. No need to add it to a xontrib - if a xonsh user wants this behavior, they can $PATH.insert(0, '.')
(on any platform).
from xonsh.
Done in cf2f422.
from xonsh.
Great read! One question: $PATH.append()
(lowest priority) or $PATH.prepend()
(highest priority)? Or mention both.
from xonsh.
from xonsh.
Related Issues (20)
- Refactoring: soft split xonsh into components
- Refactoring: commands cache HOT 5
- Xonsh immediately crashes when started, ujson attribute error HOT 2
- Reduce loading colors in non interactive command
- Refactoring: split `tools.py` into libs
- INVERT_ prompt color prefix does nothing HOT 2
- {user} in $PROMPT inaccurate if the user is root HOT 1
- $SHELL wrongly set; messes with tmux HOT 4
- Test failure building for NixOS HOT 1
- Refactoring: xontribs HOT 3
- No good way to get the last return code in a script HOT 2
- Implement `exit N` HOT 3
- current main: callable alias completion `Exception sequence item 0: expected str instance, FuncAlias found`
- Sometimes I see lag in first xonsh (or any python app?) run in new ssh session HOT 3
- Edge case: Shadowing xonsh in case of running script with shebang in virtual env
- Wrong path resolution in subprocess HOT 5
- Run tests: `fixture 'xession' not found use 'pytest --fixtures [testpath]' for help on them.` HOT 1
- conda and mamba: `DeprecationWarning: Use xonsh.lib.lazyasd instead of xonsh.lazyasd.` HOT 1
- What is changed after releasing new resolver? HOT 2
- Windows: Comapre typing speed: xonsh 0.16.0 vs 0.18.2 HOT 29
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xonsh.