Comments (10)
What shell are you using? A better solution is to specify the path in your shell.
from terminus.
I'm using cmd
but I need a solution not os dependent. I want to include your package in my plugin Deviot but In some cases I need to modify the env, so I need a solution to be configured by the plugin it self, not by the user. My idea was to use the shell_configs
option of your plugin, do you think there is another way to achieve that?
from terminus.
Is this what you want?
path = new_path + ":" + old_path
window.run_command("terminus_open", {"cmd": "whatever", "env": {"PATH": path }})
However, the PATH variable only makes sense in Unix system.
from terminus.
However, the PATH variable only makes sense in Unix system.
Why would be that?
With your command I got the results I do expected, however what would be the best way to get the cmd
used by the os, I mean in windows is cmd.exe
in unix system the bash, there is a way to let your plugin decide this and only modify the PATH?
from terminus.
Ai, actually Windows also uses PATH. But there are 2 issues.
-
Windows uses
;
to separate paths instead of:
-
A more important issue is to support WSL. So it means you need to also defineit seems that the PATH variable is passed automatically.WSLENV
from terminus.
- I've been dealing with it using
os.pathsep
(link) when I've need it - you mean by ST?
Cause your last command worked but I only wish to avoid manually "select" the cmd
from terminus.
os.pathsep
is a better solution. I meant from cmd.exe to wsl.exe.
from terminus.
It works with cmd.exe
but not with wsl.exe
, I've just checked it
from terminus.
I've checked again and it's working with wsl.exe
too
After output the wsl
paths with echo $PATH
I realized that my paths were there, so I guess shouldn't be a problem using the env
feature
from terminus.
Ya, it was also what I have figaured out.
from terminus.
Related Issues (20)
- Windows: termius.exe gets deleted and termius only runs through the termius-updater HOT 2
- Terminus (with bash) seemingly doesn't load my ~/.profile HOT 6
- Print the stdout of terminus on disk HOT 1
- Terminus does not display correctly some unicode characters HOT 5
- MSYS2 Integration HOT 1
- Vim stop working, getting TypeError (macOS 13.2) HOT 7
- Rendering Gum CLI commands takes 10+ seconds
- termius shows blank HOT 7
- High CPU usage of Sublime when Terminus is used with some commands
- can't type in terminal
- Add option to suppress bell in Terminus with Sublime Text HOT 6
- Toggle Terminus panel closes it HOT 5
- Cygwin64 does not execute the path to the file being edited
- sublime 4149 breaks terminus HOT 1
- Weird behaviour with default terminal size and ANSI escape codes HOT 2
- Terminus doesn't forward mouse inputs to tmux
- Update default shell on Mac to zsh HOT 4
- [windows] Suspicious winpty-agent.exe i/o rate when idle HOT 1
- Let's have Terminus menu under Tools -> Packages
- Page Up, Page Down, Ctrl+Home and Ctrl+End in Terminus Build System HOT 1
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 terminus.