From 7bb4421bac54cf5fa7455a4af7f91688033e1240 Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Sat, 7 Mar 2009 18:05:12 -0600 Subject: [PATCH 1/3] we do not need -U for zsh --- zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index b6cb29c..a1247e2 100644 --- a/zshrc +++ b/zshrc @@ -3,10 +3,10 @@ # Trivial modifications: David Majnemer # vim:set nowrap: -autoload -U compinit; compinit -d "${HOME}/.zsh/.zcompdump" +autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump" -autoload -U age -autoload -U zmv +autoload age +autoload zmv if [ ${ZSH_VERSION//.} -gt 420 ] ; then autoload -U url-quote-magic From 2ede1ae7fdc5bc7b00273635ca92faf83811ce66 Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Sat, 7 Mar 2009 18:06:23 -0600 Subject: [PATCH 2/3] fix up :q and :wq for ksh --- bash/alias | 2 ++ commonsh/10_alias | 2 -- zsh/alias | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 bash/alias diff --git a/bash/alias b/bash/alias new file mode 100755 index 0000000..b8da409 --- /dev/null +++ b/bash/alias @@ -0,0 +1,2 @@ +alias :q='exit' +alias :wq='exit' diff --git a/commonsh/10_alias b/commonsh/10_alias index 63c3c2e..2a60efb 100755 --- a/commonsh/10_alias +++ b/commonsh/10_alias @@ -20,8 +20,6 @@ export FCEDIT # aliases alias cd..='cd ..' -alias :q='exit' -alias :wq='exit' # handles per OS aliases, fixes a few terms case `uname -s` in diff --git a/zsh/alias b/zsh/alias index 69a7213..edf2379 100755 --- a/zsh/alias +++ b/zsh/alias @@ -2,3 +2,5 @@ alias cp='nocorrect cp' alias mv='nocorrect mv' alias rm='nocorrect rm -ir' alias mkdir='nocorrect mkdir' +alias :q='exit' +alias :wq='exit' From 5731f193fdc97d5b5119cc4b4dbb4e047eb7b938 Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Sat, 7 Mar 2009 18:06:38 -0600 Subject: [PATCH 3/3] add support for generit pterm --- zsh/bindkey | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/bindkey b/zsh/bindkey index d6b8715..7edaea5 100755 --- a/zsh/bindkey +++ b/zsh/bindkey @@ -7,7 +7,7 @@ bindkey ' ' magic-space bindkey -M emacs '\ee' edit-command-line case $TERM in - screen|xterm*|putty) + screen|xterm*|putty*) bindkey '\e[H' beginning-of-line bindkey '\e[F' end-of-line bindkey '\eOH' beginning-of-line