1. Alain Leufroy
  2. dotconfig

Commits

Alain Leufroy  committed 77e4620

[sh] zsh: better prompt + Ctrl-Left/Right + autocomplete abbreviated paths

  • Participants
  • Parent commits 86109a3
  • Branches default

Comments (0)

Files changed (1)

File sh/zshrc

View file
  • Ignore whitespace
 # -*- mode: shell-script -*-
-# Path to your oh-my-zsh configuration.
-export ZSH=$HOME/.oh-my-zsh
 
 # Set to the name theme to load.
-# Look in ~/.oh-my-zsh/themes/
-export ZSH_THEME="proze"
-
+autoload promptinit
+promptinit
+prompt clint
 # Set to this to use case-sensitive completion
 # export CASE_SENSITIVE="true"
 
 # Example format: plugins=(rails git textmate ruby lighthouse)
 plugins=(pip)
 bindkey '^[#' pound-insert
+# C-<Left>, C-Rigt support
+bindkey '5D' emacs-backward-word
+bindkey '5C' emacs-forward-word
 
-source $ZSH/oh-my-zsh.sh
+# completion of ebbreviated paths
+autoload -U compinit && compinit
+setopt complete_in_word
+
 source ~/src/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 source ~/.zshenv