Windows tabbed console attachment
mouse 16 · person cloud · link
Last update
2019-06-21
2019
06-21
«ConsoleZ is a fork of Console2
+ optional MidnightCommander config»

My ConsoleZ setup with git bash for windows

  1. download and install git bash
  2. download and install ConsoleZ
  3. gunzip and copy the attached config file to /c/Users/user_name/AppData/roaming/Console to have:
    • default git bash session
      • icon: C:\Program Files\Git\git-bash.exe
      • shell: %windir%\system32\cmd.exe /c ""C:\Program Files\Git\bin\sh.exe" --login -i"
    • LucidaConsole font with ClearType
    • 10000 rows buffer size
    • auto save position and size
    • shortcuts:
      • Ctrl+Shift+T to create new tab
      • Shift+LArr/RArr to switch tab left/right
      • Ctrl+# to switch to tab number #
      • Ctrl+Alt+S to rename tab
      • Ctrl+0/+/- to zoom font
      • Ctrl+Ins / Shift+Ins to copy/paste
      • Shift+Click&Move to select and copy text
      • Ctrl+Click&Move to move window
      • MiddleClick (bt#3) to paste

Midnight commander setup

  • download MC for windows and install it into C:\Programmi\mc

  • append this in $HOME/.bash_profile:

1
2
alias mc=". $HOME/bin/mc-wrapper.sh"
export EDITOR=/usr/bin/nano
  • create $HOME/bin/mc-wrapper.sh:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
/c/Programmi/mc/mc -P "$MC_PWD_FILE" "$@"

if test -r "$MC_PWD_FILE"; then
  MC_PWD="`cat "$MC_PWD_FILE"`"
  if test -n "$MC_PWD" && test -d "$MC_PWD"; then
    cd "$MC_PWD"
  fi
  unset MC_PWD
fi

rm -f "$MC_PWD_FILE"
unset MC_PWD_FILE
unset MC_USER
  • MC > Options > Config > check_box_outline_blank Use internal editor

Source: ConsoleZ, old Console2