From 4e808195f879ddda9e7d9c9239e318592e6e015a Mon Sep 17 00:00:00 2001 From: David Kilroy Date: Thu, 29 Jan 2009 14:15:52 -0800 Subject: [PATCH] chere 1.1-1 --- Makefile | 2 +- src/chere | 20 ++++++++++++++++---- src/chere.1 | 8 ++++---- src/xhere | 2 +- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index dcf0333..3605bb4 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY=all clean distclean help package PKG_NAME=chere -MAIN_VER=1.0 +MAIN_VER=1.1 CYG_VER=1 BIN_IPATH=bin diff --git a/src/chere b/src/chere index 42975c8..82f9756 100755 --- a/src/chere +++ b/src/chere @@ -14,9 +14,12 @@ # cmd and command terminals cannot cd to network paths like \\server\share. # # Dave Kilroy -# Sept 2007 +# Jan 2009 # -VERSION=1.0 +VERSION=1.1 +# Add support for the posh shell +# Add support for the mintty terminal. +#VERSION=1.0 # Option to add to the terminal startup command. # Option to specify context menu text. # Together these options allow you to add a context menu to start @@ -339,6 +342,10 @@ setup_for_term() rxvt ) TERM_EXE="/bin/rxvt.exe" TERM_ARGS="$USER_TERM_OPTIONS";; + mintty ) + TERM_EXE="/bin/mintty.exe" + TERM_ARGS="$USER_TERM_OPTIONS" + RUN_EXE="";; # For some reason run.exe breaks mintty xterm ) TERM_EXE="/bin/xterm.exe" TERM_ARGS="-display $DISP $USER_TERM_OPTIONS" @@ -397,6 +404,11 @@ setup_for_shell() SHELL_CMD="-l -c \\\"cd '%L'; exec $SHELL_EXE\\\"" ACCEL="&Pdksh Prompt Here" CPH_DESC="Cygwin Pdksh Prompt Here";; + posh ) + SHELL_EXE="/bin/posh.exe" + SHELL_CMD="-l -c \\\"cd '%L'; exec $SHELL_EXE\\\"" + ACCEL="&Posh Prompt Here" + CPH_DESC="Cygwin Posh Prompt Here";; tcsh ) # Apparently -l only applies if it is the only argument # so this may not work @@ -807,8 +819,8 @@ uninstall() REGTOOL="eval regtool" REGTOOL_=regtool -KNOWN_TERMS="cmd rxvt xterm" -KNOWN_SHELLS="ash bash cmd pdksh tcsh zsh passwd" +KNOWN_TERMS="cmd rxvt mintty xterm" +KNOWN_SHELLS="ash bash cmd pdksh posh tcsh zsh passwd" ALL_USERS=unset ACTION=nothing diff --git a/src/chere.1 b/src/chere.1 index 538b0e5..4ce0274 100644 --- a/src/chere.1 +++ b/src/chere.1 @@ -1,5 +1,5 @@ -.TH chere 1 "Sep 2007" "User Commands" +.TH chere 1 "Jan 2009" "User Commands" .SH NAME chere \- manage Shell Here context menu items .SH SYNOPSIS @@ -104,10 +104,10 @@ Help Version .PP Supported terminals: -.B cmd rxvt xterm +.B cmd rxvt mintty xterm .PP Supported shells: -.B ash bash cmd pdksh tcsh zsh passwd +.B ash bash cmd pdksh posh tcsh zsh passwd .SH USAGE .PP @@ -328,4 +328,4 @@ Report bugs to , following the directions in http://cygwin.co This script is in the public domain. .SH SEE ALSO -.B ash bash pdksh tcsh zsh rxvt xterm regtool +.B ash bash pdksh posh tcsh zsh rxvt xterm regtool diff --git a/src/xhere b/src/xhere index 34967ae..cb0ef28 100755 --- a/src/xhere +++ b/src/xhere @@ -64,7 +64,7 @@ fi # Replace this bash with a login shell # but only if we recognise the shell case $1 in - /bin/sh* | /bin/bash* | /bin/pdksh* | /bin/tcsh* | /bin/zsh* ) + /bin/sh* | /bin/bash* | /bin/pdksh* | /bin/posh* | /bin/tcsh* | /bin/zsh* ) echo Starting $1; exec -l $1;; * ) -- 2.11.4.GIT