1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-11-04 09:01:52 +00:00

Compare commits

...

3 Commits
0.6.0 ... 0.6.2

Author SHA1 Message Date
mintty
a6d96ff1a2 0.6.2 2016-10-07 20:34:37 +02:00
mintty
74cb9ea92b Use new mintty option --dir, simplifying registry entry for context menu and dropping the need for dash.exe 2016-09-29 14:53:34 +02:00
mintty
eef97b91d7 Added Configuration instructions 2016-09-29 14:53:19 +02:00
5 changed files with 45 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
Mintty as a terminal for Bash on Ubuntu on Windows / WSL.
#### Overview ####
### Overview ###
Run the [installer](https://github.com/mintty/wsltty/releases) to install
* wsltty package components (see below) in the users application directory (where WSL is also installed)
@@ -10,7 +10,26 @@ Run the [installer](https://github.com/mintty/wsltty/releases) to install
* a script `wsl.bat` to invoke wsltty manually; copy the script from `%LOCALAPPDATA%\wsltty` to `%SYSTEMROOT%\System32` if desired
* an uninstall script that can be invoked manually to remove shortcuts and context menu entries
#### Components ####
### Configuration ###
#### Command line script wsl.bat ####
* To enable invocation of this script from WIN+R or from cmd.exe,
copy it from `%LOCALAPPDATA%\wsltty` into `%SYSTEMROOT%\System32`.
(The package does not do this to avoid trouble with missing admin privileges.)
* To start the terminal in the current directory when calling the script from the command line,
modify it (or a copy for this purpose) and remove the final `-l` parameter.
* To enforce starting in your Linux home directory, do *either* of:
* On Linux side, add a `cd` command to your `$HOME/.profile`.
* In the script (or a copy for this purpose), add `-C~` as first parameter of `wslbridge`: `... /bin/wslbridge -C~ -t /bin/bash -l`.
#### Desktop shortcut and Start menu shortcut ####
To enforce starting in your Linux home directory, do *either* of:
* On Linux side, add a `cd` command to your `$HOME/.profile`.
* Open Shortcut Properties; in the Target, add `-C~` as first parameter of `wslbridge`: `... /bin/wslbridge -C~ -t /bin/bash -l`.
### Components ###
For mintty, see the [Mintty homepage](http://mintty.github.io/).

View File

@@ -15,7 +15,7 @@ rem copy wsl.bat "%SYSTEMROOT%\System32"
mkdir "%LOCALAPPDATA%\wsltty\bin"
copy cygwin1.dll "%LOCALAPPDATA%\wsltty\bin"
copy cygwin-console-helper.exe "%LOCALAPPDATA%\wsltty\bin"
copy dash.exe "%LOCALAPPDATA%\wsltty\bin"
rem copy dash.exe "%LOCALAPPDATA%\wsltty\bin"
copy mintty.exe "%LOCALAPPDATA%\wsltty\bin"
copy wslbridge.exe "%LOCALAPPDATA%\wsltty\bin"
copy wslbridge-backend "%LOCALAPPDATA%\wsltty\bin"
@@ -57,7 +57,8 @@ set cset=-o Locale=C -o Charset=UTF-8
set icon=%LOCALAPPDATA%\lxss\bash.ico
set arg=/bin/wslbridge -t %shell%
set target0=\"%cmd%\" %cset% -i \"%icon%\" %arg%
set target1=\"%cmd%\" %cset% -i \"%icon%\" /bin/dash -c \"cd '%%1'; exec %arg%\"
rem set target1=\"%cmd%\" %cset% -i \"%icon%\" /bin/dash -c \"cd '%%1'; exec %arg%\"
set target1=\"%cmd%\" %cset% -i \"%icon%\" --dir \"%%1\" %arg%
reg add "%userdirname%\wsltty" /d "%label% %here%" /f
reg add "%userdirname%\wsltty" /v Icon /d "%icon%" /f

View File

@@ -2,8 +2,8 @@
# default: generate all
all: wslbridge mintty cygwin wsltty pkg
ver=0.6.0
wslbridgever=0.1.0
ver=0.6.2
wslbridgever=0.2.0
TARGET := $(shell $(CC) -dumpmachine)
@@ -44,7 +44,7 @@ cygwin:
mkdir -p bin
cp /bin/cygwin1.dll bin/
cp /bin/cygwin-console-helper.exe bin/
cp /bin/dash.exe bin/
#cp /bin/dash.exe bin/
wsltty:
@@ -53,7 +53,7 @@ pkg:
sed -e "s,%version%,$(ver)," makewinx.cfg > rel/wsltty.SED
cp bin/cygwin1.dll rel/
cp bin/cygwin-console-helper.exe rel/
cp bin/dash.exe rel/
#cp bin/dash.exe rel/
cp bin/mintty.exe rel/
cp bin/wslbridge.exe rel/
cp bin/wslbridge-backend rel/

View File

@@ -34,16 +34,15 @@ AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="cygwin1.dll"
FILE1="cygwin-console-helper.exe"
FILE2="dash.exe"
FILE3="mintty.exe"
FILE4="wslbridge.exe"
FILE5="wslbridge-backend"
FILE6="LICENSE.mintty"
FILE7="LICENSE.wslbridge"
FILE8="Bash on UoW in Mintty.lnk"
FILE9="wsl.bat"
FILE10="install.bat"
FILE11="uninstall.bat"
FILE2="mintty.exe"
FILE3="wslbridge.exe"
FILE4="wslbridge-backend"
FILE5="LICENSE.mintty"
FILE6="LICENSE.wslbridge"
FILE7="Bash on UoW in Mintty.lnk"
FILE8="wsl.bat"
FILE9="install.bat"
FILE10="uninstall.bat"
[SourceFiles]
SourceFiles0=.
@@ -60,5 +59,4 @@ SourceFiles0=.
%FILE8%=
%FILE9%=
%FILE10%=
%FILE11%=

View File

@@ -1,4 +1,12 @@
@echo off
rem Start mintty terminal for WSL in home directory
rem To enable invocation of this script from WIN+R or from cmd.exe,
rem you may want to copy this script into "%SYSTEMROOT%\System32"
rem You may want a variant of this script without trailing "-l"
rem to start in the current directory from cmd.exe
"%LOCALAPPDATA%\wsltty\bin\mintty.exe" -o Locale=C -o Charset=UTF-8 -i "%LOCALAPPDATA%\lxss\bash.ico" /bin/wslbridge -t /bin/bash -l