Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Bash Inserts Tilde

Tags:

vim

git-bash

Does anyone know what could be causing git bash to randomly insert the tilde character in the terminal window.

Also I am not sure if related, but when viewing log files in vim, the help dialog automatically opens in a split window in vim.

Does anyone know what the issue could be? I suspect it could be some sort of keep alive setting, but I have yet to figure this one out.

like image 602
jreed350z Avatar asked Nov 06 '17 19:11

jreed350z


People also ask

How do I type a tilde in git bash?

In bash, press Ctrl V (literal insert) and then F10 .

How do I change the $HOME IN git bash?

To change the default startup directory of Git Bash, do the following steps: Right-click on Git Bash's shortcut icon and go to the Properties. In the Start in field, paste the path to the desired folder, e.g. D:\WorkDir. Remove --cd-to-home from the Target field if it exists.

How do I move to C drive in git bash?

In order to navigate to a different drive/directory you can do it in convenient way (instead of typing cd /e/Study/Codes), just type in cd[Space], and drag-and-drop your directory Codes with your mouse to git bash, hit [Enter].


2 Answers

Same as above answer.

Caffeine was causing it for me.
What I did was add a command argument -useshift and this stopped it completely.

For more command line things: Caffeine command line arguments

like image 106
supermitsuba Avatar answered Oct 17 '22 14:10

supermitsuba


I finally found the answer to the issue from https://superuser.com/questions/708511/putty-inserts-random-characters-during-a-session I had also just installed Caffeine about a month ago, and that is when the symptoms began! Now that I have it disabled the symptoms above have gone away!

like image 1
jreed350z Avatar answered Oct 17 '22 13:10

jreed350z