Tag Info

Hot answers tagged

13

Just edit your /etc/passwd and replace /bin/bash with /bin/zsh.


11

Cygwin's vim is configured to behave like traditional vi by default. Just create an empty ~/.vimrc, which causes vim extensions to be enabled and hence the Backspace and arrow keys to behave as expected.


8

You can just create a mintty shortcut, with these settings: Target: C:\cygwin\bin\mintty /bin/env CHERE_INVOKING=1 /bin/bash -l Start in: C:\Users\yourName No scripts required. Setting CHERE_INVOKING stops /etc/profile from changing directory to $HOME. (That variable comes from the 'chere' package.)


7

I've experienced the same issue - however in my case I am SSH'd in the Cygwin server so obviously a Win32 GUI askpass won't work. Instead, I wrote this simple script to do the askpass. I though it could be used from regular prompts as well by getting the tty device from /bin/tty.exe but that didn't work for an unknown reason (feel free to tty yourself or ...


7

Interactive non-Cygwin program often don't work correctly in Cygwin terminals such as mintty that are based on pseudo terminal ("pty") devices. That's because Cygwin uses Windows pipes to emulate ptys, so native console program see a pipe where they expect to see a console. Among other issues, that often causes them to enter non-interactive mode. See here ...


7

You can change it with the xterm control sequence for this, like so: echo -ne '\e]0;Title\a' Refer to: http://code.google.com/p/mintty/issues/detail?id=241


5

OK, I think I've found a definite solution. The problem is that, regardless of the terminal used (puttycyg, mintty, cmd.exe), Git by default, in the absence of better configured alternatives, tries to use a "simple password prompt" (as you can read in the description of core.askpass config option). The simple password prompt apparently only works on real ...


5

Right-click in mintty, then in Options...->Terminal, change type to xterm-256color, click OK, close mintty and re-launch it.


4

Try export TERM=xterm-256color or equivalent. You can add that to the appropriate dotfile if you want it to be persistent. You can use a 256-color demo script like this to verify functionality.


4

With the help of the mintty mailing list (https://groups.google.com/forum/?fromgroups#!topic/mintty-discuss/v4b86DBNI80) I found the answer. The lines that I need to add to .zshrc are bindkey '\e[H' beginning-of-line bindkey '\e[F' end-of-line


3

t_ti and t_te are both Vim options. Values are normally assigned to them by using the :set command, as :set t_ti=abcde, where the right-hand side (abcde in this example) is a literal string. The :let command is more flexible than :set and can be used to set the values of other types of variables besides options. To distinguish options from other types of ...


3

The application most likely uses Windows console APIs rather than ANSI color sequences. Mintty is a Unix terminal (based on Cygwin's pty implementation) rather than a Windows console wrapper though, hence those console API calls will have no effect. There's currently no way to make this work in mintty, although there are various rather complex ideas on how ...


3

See here: http://code.google.com/p/mintty/wiki/Tips#Changing_colours


2

The problem here is a combination of the different Python installations and Python's "flushing" behaviour. Flushing refers to writing something from memory to file or screen. When a well-designed program is writing something to a screen, it will detect that and write ("flush") it to the screen immediately, so it can be seen immediately. However, if a ...


2

As documented in the mintty wiki, you can create a shortcut with the target directory in the Start In field and the following command in the Destination field: C:\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/bash -l (change the path to mintty as needed).


2

Here my complete list of additional useful bindings (corrected to remove colons from commands). # ctrl-left/right bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word # ctrl-backspace/delete bindkey "\C-_" backward-kill-word bindkey "\e[3;5~" kill-word # alt-backspace bindkey "\e\d" undo bindkey "\e[3~" delete-char bindkey '\e[H' ...


2

To open another instance of an application, you have to Shift+Click instead of just clicking (or press Shift+Enter if you prefer the keyboard). I've also found some very helpful additional information in this question.


2

Those colors are not defined by SuperTab, they are defined by your colorscheme. To change the colors of the completion menu, open ~/.vim/colors/colorscheme_name.vim and edit the lines starting with hi Pmenu*.


2

In bash, the variable PROMPT_COMMAND can be set to hold a number of commands, seperated by semicolons. you can use that to do the same title setting as described in the other response that talks about zsh.


2

OK, I figured it out. edit the script called /bin/xhere. Towards the bottom, you should see something like.... case $1 in /bin/sh* | /bin/bash* | /bin/pdksh* | /bin/posh* | /bin/tcsh* | /bin/zsh* | /bin/dash* | /bin/mksh* | /bin/fish* ) echo Starting $1; exec -l $1;; * ) echo Do not recognise $1;; esac And what you want to do is comment out ...


1

I'm using ConsoleZ, which also has tabs but lets you split the main window, so you can see multiple consoles at the same time: this shows just tree panels, but you can have 4 and more as well.


1

In your code, WinMove,A,, 50,730,1000,314 should only work with windows with a WinTitle A. I think WinMove,,, 50,730,1000,314 OR WinMove,50,730,1000,314 will work for you.


1

Thought there is two ways Try alternative consoles? ConEmu or Console2 for example. Run sh.exe --login -i instead of mintty. I believe sh.exe exists in the same folder as mintty.exe, because mintty is not a shell but terminal only.


1

I've tried pasting a load of stuff (10k lines) to two RedHat servers we have (one low latency one medium) using Putty and MinTTY but have not been able to replicate the problem. I think trying putty would be the easiest and most likely to work.


1

Have you tried running mintty with "-e" switch? C:\cygwin\bin\mintty.exe -e /bin/vim


1

This command should work: termcapinfo * "" "ti=\EP\E[?7787l\E\\\E[?1049h:te=\EP\E[?7787h\E\\\E[?1049l" (Replacing * with a more specific name for your terminal type would be even better, but I don't know what TERM value is set by mintty.) Important differences from your version: The second and third parameters of the termcapinfo command must contain ...


1

Mintty uses the Windows GUI, not X, so you can't run mintty as an X client. You can run mintty windows on the same screen as X applications, though, so you shouldn't have any problem using it instead of xterm on a system running Cygwin.


1

I'm not sure of the answer to your question, but here are a few things that might help: Check that the PATHEXT environment variable includes .BAT. Read about the noacl option here. It seems that you might do better to remove noacl, and spend some time getting the real permissions right. Ask on the cygwin mailing list. There are many experts there who can ...


1

I used Leonel's answer, but I found the title would only flicker when doing this, which means at least the echo command works as intended. I ran zsh interactively with debug mode enabled using zsh -xv Changing the directory evidently invokes another function called title() after precmd() and chpwd(), effectively overriding them. So I plugged this into my ...



Only top voted, non community-wiki answers of a minimum length are eligible