Comments (3)
Hi @doronz88 ! I can reproduce this. Nice catch! I will take a look.
from xonsh.
By default xonsh alias is threadable. If you want to have interactive alias, mark it as unthreadable:
from xonsh.tools import unthreadable
@unthreadable
def _test(args):
import time
print('try to ctrl-c before the 10 seconds!')
time.sleep(10)
aliases['test'] = _test
test
# ^C
from xonsh.
Thanks!
from xonsh.
Related Issues (20)
- Refactoring: soft split xonsh into components
- Refactoring: commands cache HOT 3
- 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 1
- {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 23
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.