Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add terminal specific options.

  • Loading branch information...
commit 2c051706348c7b783b5445c6fb86cad076f48e85 1 parent e8503d7
@mattfoster mattfoster authored
Showing with 19 additions and 7 deletions.
  1. +19 −7 rc
View
26 rc
@@ -1,15 +1,26 @@
-setopt nobeep # No beeping
+setopt nobeep # No beeping
setopt AUTOPUSHD PUSHDMINUS PUSHDSILENT PUSHDTOHOME
-setopt AUTOCD # cd by typing dirname
-setopt cdablevars # Follow variables which are dirnames
+setopt AUTOCD # cd by typing dirname
+setopt cdablevars # Follow variables which are dirnames
setopt interactivecomments # allow comments on cmd line.
-# setopt SH_WORD_SPLIT # split up var in "for x in *"
-setopt MULTIOS # Allow multiple redirection echo 'a'>b>c
+# setopt SH_WORD_SPLIT # split up var in "for x in *"
+setopt MULTIOS # Allow multiple redirection echo 'a'>b>c
setopt CORRECT CORRECT_ALL # Try to correct command line spelling
-setopt BANG_HIST # Allow ! for accessing history
-setopt NOHUP # Don't HUP running jobs on logout.
+setopt BANG_HIST # Allow ! for accessing history
+setopt NOHUP # Don't HUP running jobs on logout.
+setopt NOBGNICE # Don't renice background jobs
setopt EXTENDED_GLOB # Enable extended globbing
+# TERM specific options
+
+case $TERM in
+screen)
+ setopt ignore_eof
+ ;;
+xterm*|rxvt|ansi)
+ ;;
+esac
+
zstyle ':completion:*' completer _expand _complete
zstyle ':completion:*' use-cache on
@@ -73,6 +84,7 @@ if [[ $ZSH_VERSION > 4.3.6 ]]; then
autoload -Uz vcs_info
zstyle ':vcs_info:*' formats '%b '
zstyle ':vcs_info:(svn|bzr):*' branchformat '%b:%r'
+ zstyle ':vcs_info:cvs:*' branchformat '%r '
zstyle ':vcs_info:bzr:*' use-simple true
zstyle ':vcs_info:*' enable git cvs svn hg bzr
# vcs_info also needs to be in precmd, see: 10_hooks
Please sign in to comment.
Something went wrong with that request. Please try again.