Wednesday, July 1, 2015

Sublime text 3 Terminus using Cygwin terminal wont accept commands (e.g ls or gcc) (Windows)

I have installed Terminus in sublime text 3 and changed the "shell_configs" to use cygwin as the terminal. To do this I edited the code to include the following.


{
"name": "Cygwin",
"cmd": ["C:\\cab202_software\\cab202_software\\cygwin\\bin\\bash.exe"],
"env": {},
"enable": true,
"default": true,
"platforms": ["windows"],
},

When I try to view the current files in my directory or compile them using ls and gcc respectively it returns the following.


bash: ls: command not found


To check if it was just cygwin, I changed the default back to CMD and the gcc command returned the same error. Both of these commands work in my standard cygwin terminal and CMD.


If anyone could help that would be great.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...