I know the question has been asked before, but then closed together with a not so good answer. Time changes though, and I wonder today, if it is possible?
To launch Atom on a specific dir use the command;
atom dir_of_interest
First, get the file location of atom.exe in your computer. Then, add the following line at the end of your .bashrc file.
alias atom='/mnt/c/<FileLocation>/atom.exe'
Afterwards, run your files from WSL by typing
atom <filename>
Install VcXSrv. Follow these instructions
Install Atom in WSL shell following steps here
Run atom in a terminal to open it
Related
So I was watching a tutorial on laravel and the tutor in the vid enters the command on the terminal as shown in the picture. He said we can use touch command on mac but to keep compatible on windows he's using vim. I don't believe he has vim.exe on his laravel project folder. Project name is freecodeGram as in pic. How do i get my computer to understand the vim command. Thanks in advance, I'm on windows.
Command was: vim database/database.sqlite
You need to add the path to vim.exe to your system PATH. This would allow you to type vim ..... in the CLI and would execute vim directly. Otherwise, prefix vim database/database.sqlite with c:/path/to/vim database/database.sqlite
I am a bit surprised, but I can't run matlab by the terminal of my Mac.
I am trying the command
/Applications/MATLAB_R2015b.app/bin/matlab
but I get the error
-bash: matlab: command not found
Listing the contenents of the folder /Applications/MATLAB_R2015b.app/bin/ I can see the word matlab which is supposed to be the executable.
I don't know what's happening.
Try
cd /Applications/MATLAB_R2015b.app/bin/
and then
./matlab
If that, hopefully, works, then you may have a path or environment issue with your O/S which is preventing your call to /Applications/MATLAB_R2015b.app/bin/matlab from working.
add the installation directory to the PATH environment, for example:
export PATH=/Applications/MATLAB_R2017b.app/bin/:$PATH
then launch Matlab with
matlab
in your terminal
It works fine, however, if you used the default folder it would be something like export PATH=/usr/local/MATLAB/R2021b/bin/:$PATH
Additionally, remember about activating matlab before via running the activate_matlab.sh script located in the installation folder
I'm a bit of a noob at this, but every time I restart my machine and update OS X, I lose adb commands in terminal. I'm not sure how or why this happens or how to get them back aside from reinstalling adb tools, but I'm assuming there's a better way.
The adb tools need to be added to the paths so terminal searches the directory the tools are in.
Assuming you are using a bash terminal you edit or create .bash_profile-file that defines the paths to search, in the example below using the nano-editor:
nano ~/.bash_profile
Enter the path to the adb tools as follows:
export PATH=$PATH:/path/to/the/adb/tools
Save the file (CTRL-X, choose Yes on Save), close the terminal window and open up a new one to load the .bash_profile. This should solve your problem.
I am trying to access git bash, but nothing happens (black screen). I used git bash many times during September and October, but when I tried today it did this. What can I do to solve this?
Thanks.
Have you had Cygwin installed? I was having this exact issue, then I found out I still had a "etc" and "bin" directories in my user folder on Windows. After removing these (As I didn't want Cygwin) GitBash worked for me again :)
Perhaps as a temporary solution you could navigate to C:\Program Files (x86)\Git\bin using the windows cmd line and execute git.exe. For me Im able to perform gitbash functions, just not with the lovely unix like syntax and interface.
Also if you include gitbash to be written to your PATH during install, the win cmd line still works.
I downloaded and installed the SML NJ implementation using the DMG for x86 from here :
http://smlnj.cs.uchicago.edu/dist/working/110.72/index.html
However when I open a terminal window and go to /usr/local/smlnj-110.72/bin and run sml i get a bash command not found.
I am not very familiar with UNIX so I guess I am doing something wrong.
Thanks for the help!
Add the following line to your ~/.bash_profile
export PATH=$PATH:/usr/local/smlnj/bin
Then open a new terminal window and run sml.
After going to the /usr/local/smlnj-xxx/bin directory, you need to run ./sml
(as opposed to sml) because the current directory (.) is not on the default path on Unix.