Skip to content

Commit

Permalink
further refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
imajes committed Sep 22, 2009
1 parent 1f05826 commit 93af38f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals.zsh
log/.zsh_history

projects.zsh
9 changes: 8 additions & 1 deletion completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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
2 changes: 1 addition & 1 deletion directories.zsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changing/making/removing directory

setopt auto_name_dirs

alias ..='cd ..'
alias cd..='cd ..'
Expand Down
2 changes: 2 additions & 0 deletions key-bindings.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# TODO: Explain what some of this does..
autoload -U compinit
compinit

bindkey -e
bindkey '\ew' kill-region
bindkey -s '\el' "ls\n"
bindkey -s '\e.' "..\n"
Expand Down
17 changes: 5 additions & 12 deletions prompt.zsh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 93af38f

Please sign in to comment.