* ******************************************************************************************* I had a lot of problems with mingw64 terminal being sluggish, especially file completion with TAB, etc. Other people had sluggish problems, but none of their solutions matched mine, unless it's the virus protection on my work PC. I don't see this sluggish problem on my personal MSI computer. In anycase, the sluggishness goes away if I run a fresh shell process. Normally .bash_profile is only called if it's the login shell. It can do some stuff and then it calls ~/.bashrc if it exists. What I do now is simply have .bash_profile call bash. This starts a new process which isn't a login shell ($SHLVL=2), and this shell will then be fast. I can also create other shells with the alias "mmt" Also, I do not have a windows environment variable HOME set If you set this, it will be honored by msys2, and if you don't create it as a Windows environment variable, msys2 will set if for you to /c/msys64/home/greg Here are my files : * ----------------------------------------------- * --- begin : .bash_profile * ----------------------------------------------- # User dependent .bash_profile file echo "Hello Login Greg" UBOX="/ubox" export UBOX GREGSET=1 export GREGSET bash * ----------------------------------------------- * --- end : .bash_profile * ----------------------------------------------- * ----------------------------------------------- * --- begin : .bashrc * ----------------------------------------------- [warwar@workbox ~]$ diff .bashrc_orig .bashrc 75,77c75,77 < # if [ -f "${HOME}/.bash_aliases" ]; then < # source "${HOME}/.bash_aliases" < # fi --- > if [ -f "${HOME}/.bash_aliases" ]; then > source "${HOME}/.bash_aliases" > fi * ----------------------------------------------- * --- end : .bashrc * ----------------------------------------------- * ----------------------------------------------- * --- begin : .bash_aliases * ----------------------------------------------- # This File : .bash_aliases # PS1="[\u@\h \W]\\$ " # PS1="\[\e]0;\]\w\a[\u@\h \W]\\$ " PS1="\[\e]0;\][\u@\h] \w\a[\u@\h \W]\$ " export PS1 DD=/c/Users/gcwarwar/Desktop export DD GREGLOC=CSUN echo "Hi Greg in ($GREGLOC)" umask 0022 QCCDIR=${UBOX}/qccdir export QCCDIR GGCDIR=${UBOX}/ggcdir export GGCDIR PATH=.:$HOME/bin:$UBOX/qlob/bin:$UBOX/qccdir/bin:$PATH alias lls='ls -lrt' alias ll='ls -l' alias llm='ls -l | more' alias ln=false alias mmt='mintty.exe -t Hello -e bash &' alias svv='export XILINX_VIVADO=/media/greg/ZZLNX/Vivado/2019.2; PATH=/media/greg/ZZLNX/Vivado/2019.2/bin:$PATH' if [ $GREGLOC = "CSUN" ] then echo "Using CSUN" PATH=$PATH:${GCCDIR}/bin:/media/greg/ZZLNX/SPECTRE18.10.169/bin:$QCCDIR/tools/dfII/bin export PATH else OA_UNSUPPORTED_PLAT=linux_rhel50_gcc48x export OA_UNSUPPORTED_PLAT alias lmstat_cadence='lmstat -c $CDS_LIC_FILE -a' fi * ----------------------------------------------- * --- end : .bash_aliases * ----------------------------------------------- * ----------------------------------------------- * --- begin : load_packages.sh * ----------------------------------------------- #!/bin/bash # https://packages.msys2.org/base pacman -Syu --needed --noconfirm vim pacman -Syu --needed --noconfirm gcc pacman -Syu --needed --noconfirm rsync pacman -Syu --needed --noconfirm rsync2 pacman -Syu --needed --noconfirm lftp pacman -Syu --needed --noconfirm gzip pacman -Syu --needed --noconfirm tar pacman -Syu --needed --noconfirm zip pacman -Syu --needed --noconfirm unzip pacman -Syu --needed --noconfirm time pacman -Syu --needed --noconfirm screenfetch pacman -Syu --needed --noconfirm sed pacman -Syu --needed --noconfirm vifm pacman -Syu --needed --noconfirm ncurses pacman -Syu --needed --noconfirm nano pacman -Syu --needed --noconfirm mintty pacman -Syu --needed --noconfirm m4 pacman -Syu --needed --noconfirm make pacman -Syu --needed --noconfirm man-db pacman -Syu --needed --noconfirm man-pages-posix pacman -Syu --needed --noconfirm gtk-doc pacman -Syu --needed --noconfirm openssh pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtk2 pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtk3 pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtk-vnc pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtk-engines pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtkimageview pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtkmm pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtkmm3 pacman -Syu --needed --noconfirm mingw-w64-x86_64-pkg-config pacman -Syu --needed --noconfirm mingw-w64-x86_64-dbus pacman -Syu --needed --noconfirm mingw-w64-x86_64-dbus-c++ pacman -Syu --needed --noconfirm mingw-w64-x86_64-dbus-glib pacman -Syu --needed --noconfirm mingw-w64-x86_64-wget pacman -Syu --needed --noconfirm mingw-w64-x86_64-curl pacman -Syu --needed --noconfirm mingw-w64-x86_64-gtkwave pacman -Syu --needed --noconfirm mingw-w64-x86_64-imagemagick pacman -Syu --needed --noconfirm mingw-w64-x86_64-glade pacman -Syu --needed --noconfirm mingw-w64-x86_64-glade3 pacman -Syu --needed --noconfirm mingw-w64-x86_64-diffutils pacman -Syu --needed --noconfirm mingw-w64-x86_64-python2 pacman -Syu --needed --noconfirm mingw-w64-x86_64-python2-pip pacman -Syu --needed --noconfirm mingw-w64-x86_64-python2-setuptools pacman -Syu --needed --noconfirm mingw-w64-x86_64-python2-pygtk pacman -Syu --needed --noconfirm mingw-w64-x86_64-python2-pycairo pacman -Syu --needed --noconfirm mingw-w64-x86_64-python pacman -Syu --needed --noconfirm mingw-w64-x86_64-python-pip pacman -Syu --needed --noconfirm mingw-w64-x86_64-python-setuptools pacman -Syu --needed --noconfirm mingw-w64-x86_64-python-numpy pacman -Syu --needed --noconfirm mingw-w64-x86_64-python-matplotlib pacman -Syu --needed --noconfirm mingw-w64-x86_64-python3-scipy pacman -Syu --needed --noconfirm mingw-w64-x86_64-pycairo pacman -Syu --needed --noconfirm mingw-w64-x86_64-xpdf pacman -Syu --needed --noconfirm mingw-w64-x86_64-verilator pacman -Syu --needed --noconfirm mingw-w64-x86_64-unicode-character-database pacman -Syu --needed --noconfirm mingw-w64-x86_64-ttf-dejavu pacman -Syu --needed --noconfirm mingw-w64-x86_64-tk pacman -Syu --needed --noconfirm mingw-w64-x86_64-tcl pacman -Syu --needed --noconfirm mingw-w64-x86_64-putty pacman -Syu --needed --noconfirm mingw-w64-x86_64-gsl pacman -Syu --needed --noconfirm mingw-w64-x86_64-gsfonts pacman -Syu --needed --noconfirm mingw-w64-x86_64-graphicsmagick pacman -Syu --needed --noconfirm mingw-w64-x86_64-goocanvas pacman -Syu --needed --noconfirm mingw-w64-x86_64-gnuplot pacman -Syu --needed --noconfirm mingw-w64-x86_64-glibmm pacman -Syu --needed --noconfirm mingw-w64-x86_64-ghostscript pacman -Syu --needed --noconfirm mingw-w64-x86_64-ftgl pacman -Syu --needed --noconfirm mingw-w64-x86_64-freetype pacman -Syu --needed --noconfirm mingw-w64-x86_64-fontconfig pacman -Syu --needed --noconfirm mingw-w64-x86_64-fftw pacman -Syu --needed --noconfirm mingw-w64-x86_64-evince pacman -Syu --needed --noconfirm mingw-w64-x86_64-eog pacman -Syu --needed --noconfirm mingw-w64-x86_64-docbook-mathml pacman -Syu --needed --noconfirm mingw-w64-x86_64-docbook-xml pacman -Syu --needed --noconfirm mingw-w64-x86_64-cairo pacman -Syu --needed --noconfirm mingw-w64-x86_64-cairomm pacman -Syu --needed --noconfirm mingw-w64-x86_64-adobe-source-code-pro-fonts * ----------------------------------------------- * --- end : .bash_aliases * ----------------------------------------------- * ******************************************************************************************* https://stackoverflow.com/questions/42888024/git-bash-mintty-is-extremely-slow-on-windows-10-os * ******************************************************************************************* file completion on my work PC was slow I followed on recipie to see if I could speed it up I'm not sure if this helps https://gist.github.com/k-takata/9b8d143f0f3fef5abdab (by the way, before doing this there is no /etc/passwd and no /etc/group) 237 mkpasswd -l -c > /etc/passwd 238 mkgroup -l -c > /etc/group 239 vim /etc/nsswitch.conf [gcw@gcw-w ~]$ diff /etc/nsswitch.conf.orig /etc/nsswitch.conf 3,4c3,4 < passwd: files db < group: files db --- > passwd: files > group: files * ******************************************************************************************* * Go to msys2.org install msys2 from msys2.org * Open an msys2 terminal and run pacman -Syu * Install packages (see https://www.msys2.org/wiki/Using-packages/ ) pacman -Sy vim pacman -Sy gcc pacman -Sy mingw-w64-x86_64-gtkmm pacman -Sy mingw-w64-x86_64-gtkmm3 pacman -S mingw64/mingw-w64-x86_64-pkg-config pacman -S mingw64/mingw-w64-x86_64-dbus pacman -S mingw64/mingw-w64-x86_64-dbus-c++ pacman -S mingw64/mingw-w64-x86_64-dbus-glib pacman -S mingw64/mingw-w64-x86_64-python2 It seems I manually need to run dbus-launch.exe and then I can run my gtk compiled C program pacman -Sy python pacman -Sy python3 pacman -Qs pacman -Ss Call pacman -Fy to update your package database. To find an exact match, call pacman -F (don't include the path in the filename). To find a substring match, call pacman -Fx .