]> id.pley.net Git - dotfiles.git/blobdiff - zsh_login
Fixed ssh-forget function to deal with possible space delimited entries.
[dotfiles.git] / zsh_login
index f796c23f35f618ea56a3262b8c3ccb4b04b7ba68..459dfc814af2d87e4a23f6e3be82471e6fc1a77a 100644 (file)
--- a/zsh_login
+++ b/zsh_login
@@ -6,6 +6,7 @@ if [[ "$terminfo[colors]" -ge 8 ]]; then
 fi
 
 # Set up tab completion
 fi
 
 # Set up tab completion
+fpath=(~/.dotfiles/completions "${fpath[@]}")
 autoload -U compinit
 compinit
 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
 autoload -U compinit
 compinit
 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
@@ -23,21 +24,28 @@ precmd() {
   [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_"
 }
 
   [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_"
 }
 
+__git_files () { 
+    _wanted files expl 'local files' _files     
+}
+
 setopt PROMPT_SUBST
 setopt INC_APPEND_HISTORY
 setopt SHARE_HISTORY
 setopt extended_glob
 
 setopt PROMPT_SUBST
 setopt INC_APPEND_HISTORY
 setopt SHARE_HISTORY
 setopt extended_glob
 
-PS1=$'\(zsh) %(?.%F{green}:-\)%f.%F{red}:-(%f) %(1v.%1v .)%n@%m:%(3~,.../,)%2~> '
+PS1=$'%(?.😊.😡)  %(1v.%1v .)%n@%m:%(3~,.../,)%2~> '
 PATH=~/bin:$PATH
 
 HISTFILE=~/.zsh_history
 HISTSIZE=5000
 SAVEHIST=1000
 PATH=~/bin:$PATH
 
 HISTFILE=~/.zsh_history
 HISTSIZE=5000
 SAVEHIST=1000
+WORDCHARS='*?_-.[]~&;!#$%^(){}<>'
 
 export MANPATH=~/man:$MANPATH
 export EDITOR=/usr/bin/vim
 export LSCOLORS=gxfxcxdxbxegedabagacad
 
 
 export MANPATH=~/man:$MANPATH
 export EDITOR=/usr/bin/vim
 export LSCOLORS=gxfxcxdxbxegedabagacad
 
+export CDPATH=~
+
 source ~/.dotfiles/zsh_aliases
 source ~/.dotfiles/zsh_webkit_login
 source ~/.dotfiles/zsh_aliases
 source ~/.dotfiles/zsh_webkit_login