I am having trouble importing modules from within xonsh script that are installed in to the virtual environment. I installed the virtual environment ...
I am having trouble importing modules from within xonsh script that are installed in to the virtual environment. I installed the virtual environment ...
How do I measure execution time of command/script in xonsh? In bash I can do it with time eg: > time sleep 1 real 0m1,002s user 0m0,001s sy ...
Given a variable AWS_ASSUMED_ROLE that contains the output of the aws sts assume-role (a JSON string), I can write the following in bash. export AWS_ ...
When I start vim I get: My first line in ~/.vimrc is let s:uname = system("uname -s"). The error happens because SHELL env var is set to /home/kos ...
I have the following alias: It works perfectly fine, however when I try piping it to anything, e.g.: it still prints out the full output of test ...
In Bash, if I create a function, I can use the type command to show me that function definition like so: Zsh and Fish both have something similar w ...
My regular expression does not explicitly include a dash in a character range, but my code fails when the input file name is like this: Here is my ...
I would like to test (from xonsh) if a command is available or not. If I try this from the xonsh command prompt: Then it works: But it does not ...
I get weird behaviour when using stty in the xonsh shell on Linux/macOS. (Commands do not seem to obey the defined column under xonsh, but they do so ...
How would one replace text in all files within a given directory (recursively) while in the xonsh shell? For example, how would I rewrite the below b ...
I'm using MiniConda with xonsh installed. Running print(sys.version) produces: I'm not sure which version of xonsh I'm using, but I installed it ye ...
I have a test folder like this: in a normal bash/zsh shell this is the output of the command but in a xonsh shell, this is the output I try c ...
I want to override environment variables in my foo.xsh file like this But after I call xonsh foo.xsh, $FOO is not set. Any ideas? ...
I'm trying to override 'ls' command to display dotfiles in "dotfiles" directory. Here is my code. def _ls(): if $(pwd).rstrip(os.linesep) == $DO ...
Using xonsh as my shell and conda environments, I hit an error within the VSCode terminal when it attempts to activate an environment. This is becaus ...
What is the best way in the xonsh shell to loop over the lines of a text file? (A) At the moment I'm using (B) Of course, there is also I use ...
In the xonsh shell how can I use the name of the virtual environment I'm use as a condition in the definition of $PROMPT? (More in detail: I have a v ...
In the xonsh shell how can I receive from a pipe to a python expression? Example with a find command as pipe provider: The for p in <stdin>: ...
In the xonsh shell how can I pipe the output of a Python construct to another command? Desired example: In this for v in ... is the Python construc ...
Why this peaces of code dont't run the same. Second command Is the python readlines uncorrect for read line by line the input Pipe. My version ...