Browse files

further refactorings

  • Loading branch information...
1 parent 1f05826 commit 93af38f154174f8af9e2aa71a1a64bdc640c3655 @imajes imajes committed Sep 23, 2009
Showing with 17 additions and 15 deletions.
  1. +1 −1 .gitignore
  2. +8 −1 completion.zsh
  3. +1 −1 directories.zsh
  4. +2 −0 key-bindings.zsh
  5. +5 −12 prompt.zsh
View
2 .gitignore
@@ -1,3 +1,3 @@
+locals.zsh
log/.zsh_history
-
projects.zsh
View
9 completion.zsh
@@ -19,7 +19,7 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
-#unsetopt MENU_COMPLETE
+unsetopt MENU_COMPLETE
#setopt AUTO_MENU
# should this be in keybindings?
@@ -31,3 +31,10 @@ zstyle ':completion:*:*:*:*:*' menu yes select
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
+
+
+#complete on history
+# zstyle ':completion:*:history-words' stop yes
+# zstyle ':completion:*:history-words' remove-all-dups yes
+# zstyle ':completion:*:history-words' list false
+# zstyle ':completion:*:history-words' menu yes
View
2 directories.zsh
@@ -1,5 +1,5 @@
# Changing/making/removing directory
-
+setopt auto_name_dirs
alias ..='cd ..'
alias cd..='cd ..'
View
2 key-bindings.zsh
@@ -1,6 +1,8 @@
# TODO: Explain what some of this does..
autoload -U compinit
compinit
+
+bindkey -e

Does this line make sense? History search with ^R did not work for me until I deleted that line.

"By default, [zsh] tries to guess whether you want emacs or vi keys from the $EDITOR environment variable. If it's empty, it will default to emacs. You can change this with bindkey -v or bindkey -e."

https://wiki.archlinux.org/index.php/Zsh#Key_Bindings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
bindkey '\ew' kill-region
bindkey -s '\el' "ls\n"
bindkey -s '\e.' "..\n"
View
17 prompt.zsh
@@ -1,19 +1,12 @@
export PAGER=less
export LC_CTYPE=en_US.UTF-8
-bindkey -e
+# speed stuff.
-# Directory stuff.
-setopt AUTO_NAME_DIRS
-
-# Speed stuff.
-
-#setopt NO_BEEP
-setopt AUTO_CD
-setopt MULTIOS
-setopt CDABLEVARS
-
-bindkey -e
+#setopt no_beep
+setopt auto_cd
+setopt multios
+setopt cdablevarS
if [[ x$WINDOW != x ]]
then

0 comments on commit 93af38f

Please sign in to comment.