Emacs, "helm-grep-do-git-grep" ---> git --no-pager grep - emacs

Windows 10 (64 bit), Emacs 25.1.
I want to use command helm-grep-do-git-grep to find text in many files.
But when I start (in git folder) this command I get error:
git --no-pager grep...
Here screenshot:

Related

error while installing python extensions " can't open file 'directory + filename': [Errno 2] No such file or directory "

I tried to install mypy extension in vs code but it keeps showing me this error below
C:\Users\Yourusername\Dev\django_project_boilerplate\env\Scripts\python.exe: can't open file 'c:UsersYourusername.vscodeextensionsms-python.python-2020.6.89148pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory
(env)
then I realized that the terminal is removing the anti-slashes from the file location in the commande below because it's a special character
c:/Users/Yourusername/Dev/django_project_boilerplate/env/Scripts/python.exe c:\Users\Yourusername\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py pip install -U mypy
I got the same error when clicking the "Install ipykernel" on the pop-up window when trying to use Python Interactive mode in VS Code.
My problem was that I had git bash as my default shell while running VS Code on Windows, hence filepaths where not being processed properly.
I solved the problem by changing my Terminal's default shell:
Type: ctrl + shift + p
In the dropdown, select Terminal: Select Default Shell
In the subsequent dropdown, select Command Prompt C:\...
Try running Interactive mode once again (e.g. add # %% above a line of code and then click Run Cell)
Now click "Install ipykernel" on the pop-up window that comes up on the bottom right corner.
The installation now executed from the cmd shell without any problems, and Interactive mode worked fine.
what I did is to add an extra anti-slash and it worked fine :
c:/Users/Yourusername/Dev/django_project_boilerplate/env/Scripts/python.exe c:\\Users\\Yourusername\\.vscode\\extensions\\ms-python.python-2020.6.89148\\pythonFiles\\pyvsc-run-isolated.py pip install -U mypy
For as I also use git bash as my default terminal in windows, I used the following command:
python /c/Users/uname/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py pip install -U black --user
Whereas I was getting error like this, before:
C:/Users/uname/AppData/Local/Programs/Python/Python38/python.exe c:\Users\uname\.vscode\extensions\ms-python.python-2021.3.680753044\pythonFiles\pyvsc-run-isolated.py pip install -U black --user
C:\Users\uname\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'c:Usersigour.vscodeextensionsms-python.python-2021.3.680753044pythonFilespyvsc-run-isolated.py': [Errno 2]
No such file or directory
As you can see it is due to the way git bash handles the file location differently, which I fixed and it worked fine alter.
Honestly, I love to see windows start following the same directory structure like other Linux system(Hope some day this will become true).
Change your vs code's terminal back to Default Shell > Command Prompt C:\Windows...
The error is due to PATH conflict while using git bash as default terminal on VS Code.

How to perform silent installation using git bash

I am using git bash to perform installation of exe file.
my git bash located into below location
C:\Program Files\Git\bin\bash.exe
I opened that bash.exe and try to install my exe as below
$ ./Setup.exe /silent
But it still popup me for user indirection during installation .
and same command is working fine if I will execute using C:\cygwin64

Git Bash terminal in Eclipse on MS Windows

I have two different laptops running MS Windows and noticed on one laptop there was a Git Bash option for a new terminal window in the Terminal view in Eclipse, while it was not available on the other laptop.
After a little trial and error, I was able to determine the Git Bash option is only available if the git cli client from https://git-scm.com is installed.
I like to be able to run git from the command line in Eclipse without having to switch windows. Hope this helps someone trying to do the same thing.
You can use the Open A Terminal icon to open up Git Bash if Git Bash is already installed on your Windows machine.
Update:
Add Gitbash terminal to Eclipse:
Install this plugin on Eclipse Marketplace:
TM Terminal
https://marketplace.eclipse.org/content/tm-terminal
After that, go to Window -> Preferences -> Terminal -> Local Terminal and add a entry with full path where Git Bash executable (bash.exe) was installed.
Then you can open Git Bash pressing CTRL+ALT+SHIFT+T.

Vim in Jupyter Notebook

# You may need the following to create the directoy
$ mkdir -p $(jupyter --data-dir)/nbextensions
# Now clone the repository
$ cd $(jupyter --data-dir)/nbextensions
$ git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding
$ chmod -R go-w vim_binding
I found this installation guide to include vim in Jupyter. But I don't understand the above installation step.
I am using Windows 10 and Chrome. Where should I run those code? Anaconda prompt or cmd?
Those are instructions for a linux environment. You can use either cygwin or the Windows Linux Subsystem (WSL).

Adding git Submodule error for installing RestKit

I want to install the RestKit for my project but in the first step when I want to add git submodule by using Terminal it gives me this error:
command not found
Here is the code that I input:
$ cd /path/to/MyApplication
$ git init
$ git submodule add git://github.com/RestKit/RestKit.git
$ open RestKit
The first line of code works but when I input the second line it gives me the error, anybody can help me please!
In the latest versions of XCode4 the command line tools (like git) are not installed by default. If you go to the Preferences menu you can install the command line utilities from there. You may need to restart your terminal after they've installed.
You should install git first for your OS.
like apt-get install git in ubuntu
or brew install git in OSX