Skip to content

Commit

Permalink
Update available config options
Browse files Browse the repository at this point in the history
  • Loading branch information
Lara Maia committed May 7, 2018
1 parent a931daa commit ae3299d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
20 changes: 13 additions & 7 deletions mintty-dropdown.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,27 @@ Menu, Tray, Add, Exit, BtnExit

iniFile = %A_WorkingDir%\mintty-dropdown.ini

IniRead, cygwinDir, %iniFile%, Global, cygwinDir
if cygwinDir contains ERROR
RegRead, cygwinDir, HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup, rootdir
IniRead, rootDir, %iniFile%, Global, rootDir
if rootDir contains ERROR
RegRead, rootDir, HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup, rootdir

IniRead, shell, %iniFile%, Global, shell
if shell contains ERROR
shell = /bin/sh

IniRead, homeDir, %iniFile%, Global, homeDir
if homeDir contains ERROR
homeDir = %cygwinDir%\home\%A_UserName%
homeDir = %rootDir%\home\%A_UserName%

binDir = %cygwinDir%\bin
mintty = %binDir%\mintty.exe
console = %mintty% --class mintty-dropdown %shell%
IniRead, binDir, %iniFile%, Global, binDir
if binDir contains ERROR
binDir = %rootDir%\bin

IniRead, minttyPath, %iniFile%, Global, minttyPath
if minttyPath contains ERROR
minttyPath = %binDir%\mintty.exe

console = %minttyPath% --class mintty-dropdown %shell%

height = 400

Expand Down
30 changes: 19 additions & 11 deletions mintty-dropdown.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
[Global]
; Set only the variables that you need!
; Just set variables that you need!
;
; Full path where the cygwin is installed (E.g. C:\cygwin)
; Usually you do not need to change it.
;cygwinDir=
; Full path where the cygwin/msys is installed
; (E.g.: C:\msys2)
;rootDir=%cygwinInstallDir%
;
; The shell that you use (E.g.: /bin/sh ).
; You can also use terminal multiplexers here
; You can also use terminal multiplexers
; like tmux or screen (E.g.: /bin/tmux)
;shell=
; Usually you do not need to change it
;shell=/bin/sh
;
; Your home directory. (E.g.: /home/myuser)
; Usually you do not need to change it. Unless if
; your Windows user is other than Cygwin user.
;homeDir=
; Your home directory. (E.g.: c:\somefolder\home\<user>)
; Usually you do not need to change it
;homeDir=%rootDir%\home\%A_UserName%
;
; Hotkey for toggle console and fullscreen mode.
; You /bin directory. (E.g.: C:\somefolder\bin)
; Usually you do not need to change it
;binDir=%rootDir%\bin

; you mintty binary location. (E.g.: C:\cygwin64\bin\mintty.exe)
; Usually you do not need to change it
;minttyPath=%binDir%\mintty.exe

; Hotkey for toggle between console and fullscreen mode.
; You can use the following basic modifiers:
; # = Win (Windows Logo key)
; ! = Alt
Expand Down

0 comments on commit ae3299d

Please sign in to comment.