Keine Registerkarten beim Verweisen von Console2 auf Cygwin

433
ctote

Ich versuche, Console2 mit meiner Cygwin-Installation zu verbinden. Ich habe meine Shell in Console2 so konfiguriert, dass sie darauf verweist C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -, aber wenn ich eine "neue Registerkarte" öffne, wird ein ganz neues Cygwin-Fenster außerhalb von Console2 geöffnet. Was mache ich falsch?

1

1 Antwort auf die Frage

2
DavidPostill

Was mache ich falsch?

C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - 

mintty.exe ist ein Terminal, das sein eigenes Fenster hat.

Es ist nicht dafür ausgelegt, in einem Fenster eines anderen Programms ausgeführt zu werden.

$ mintty --help Usage: mintty [OPTION]... [ PROGRAM [ARG]... | - ]  Start a new terminal session running the specified program or the user's shell. If a dash is given instead of a program, invoke the shell as a login shell.  Options: -c, --config FILE Load specified config file -e, --exec Treat remaining arguments as the command to execute -h, --hold never|start|error|always Keep window open after command finishes -i, --icon FILE[,IX] Load window icon from file, optionally with index -l, --log FILE|- Log output to file or stdout -o, --option OPT=VAL Override config file option with given value -p, --position X,Y Open window at specified coordinates -s, --size COLS,ROWS Set screen size in characters -t, --title TITLE Set window title (default: the invoked command) -u, --utmp Create a utmp entry -w, --window normal|min|max|full|hide Set initial window state --class CLASS Set window class name (default: mintty) -H, --help Display help and exit -V, --version Print version information and exit 

Ich habe keine cygwin.batin meinem cygwin64\binVerzeichnis

cygwin.batbefindet installiert in der Basis Cygwin - Verzeichnis, in meinem Fall /c/cygwin(was auch ist C:\cygwin).

DavidPostill@Hal /c/cygwin $ cd /c/cygwin  DavidPostill@Hal /c/cygwin $ ls bin Cygwin.bat Cygwin.ico Cygwin-Terminal.ico dev etc home lib sbin tmp usr var  DavidPostill@Hal /c/cygwin $ cat cygwin.bat @echo off  C: chdir C:\cygwin\bin  bash --login -i 
Nun, Müll. Ich habe kein `cygwin.bat` in meinem` cygwin64 \ bin`-Verzeichnis, wie die Beispiele in anderen Beiträgen zeigen. Irgendeine Idee, worauf ich hinweisen sollte? ctote vor 7 Jahren 0
@ctote Sie suchen am falschen Ort. Antwort aktualisiert DavidPostill vor 7 Jahren 1
Sehr beeindruckend! Wenn Sie dies in Zukunft tun möchten, sollten Sie, wenn Sie beim Einstellen der Shell `cygwin.bat` in Ihrem` C: \ cygwin`-Pfad nicht sofort sehen, sicherstellen, dass der Selektor in `Console2` nicht auf _only_ gesetzt ist. Suchen Sie nach "exe" -Dateien (standardmäßig war meine). ctote vor 7 Jahren 0
@ctote "beim Setzen der Shell" der Shell, natürlich ist "bash" nicht "cygwin.bat" ... DavidPostill vor 7 Jahren 1
yep, aber Console2 hat das Feld als "Shell" beschriftet, also geht es einfach von ihrer Benutzeroberfläche aus ctote vor 7 Jahren 0