diff options
author | Sébastien M-B <essembeh@gmail.com> | 2012-06-27 00:12:55 +0200 |
---|---|---|
committer | Sébastien M-B <essembeh@gmail.com> | 2012-06-27 00:12:55 +0200 |
commit | 8d23a3611086e9a13e7ad754c57fa8cc4797bfa9 (patch) | |
tree | b521e91a17b715259ed31ffa163f9254f8b546a8 /lib | |
parent | 18cb11903f8208403a0ba5a8f2ece1a0bd4ef9a3 (diff) | |
parent | 29fb24487cce4e61bdc24a9a0308f04a739a3d1f (diff) | |
download | zsh-8d23a3611086e9a13e7ad754c57fa8cc4797bfa9.tar.gz zsh-8d23a3611086e9a13e7ad754c57fa8cc4797bfa9.tar.bz2 zsh-8d23a3611086e9a13e7ad754c57fa8cc4797bfa9.zip |
Merge branch 'master' of github.com:essembeh/oh-my-zsh
Diffstat (limited to 'lib')
-rw-r--r-- | lib/completion.zsh | 2 | ||||
-rw-r--r-- | lib/directories.zsh | 4 | ||||
-rw-r--r-- | lib/key-bindings.zsh | 1 | ||||
-rw-r--r-- | lib/misc.zsh | 2 | ||||
-rw-r--r-- | lib/termsupport.zsh | 4 |
5 files changed, 7 insertions, 6 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh index 2deb5dac0..ce59d02fa 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -49,7 +49,7 @@ zstyle ':completion:*' users off # Use caching so that commands like apt and dpkg complete are useable zstyle ':completion::complete:*' use-cache 1 -zstyle ':completion::complete:*' cache-path ~/.oh-my-zsh/cache/ +zstyle ':completion::complete:*' cache-path $ZSH/cache/ # Don't complete uninteresting users zstyle ':completion:*:*:*:users' ignored-patterns \ diff --git a/lib/directories.zsh b/lib/directories.zsh index bb114f615..a787db9eb 100644 --- a/lib/directories.zsh +++ b/lib/directories.zsh @@ -36,9 +36,9 @@ cd () { alias md='mkdir -p' alias rd=rmdir -alias d='dirs -v' +alias d='dirs -v | head -10' # mkdir & cd to it function mcd() { mkdir -p "$1" && cd "$1"; -}
\ No newline at end of file +} diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index 5c1b90bfa..5f499f3e8 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -3,7 +3,6 @@ bindkey -e bindkey '\ew' kill-region bindkey -s '\el' "ls\n" -bindkey -s '\e.' "..\n" bindkey '^r' history-incremental-search-backward bindkey "^[[5~" up-line-or-history bindkey "^[[6~" down-line-or-history diff --git a/lib/misc.zsh b/lib/misc.zsh index 88732e664..0f7e7e925 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -9,5 +9,5 @@ bindkey "^[m" copy-prev-shell-word setopt long_list_jobs ## pager -export PAGER=less +export PAGER="less -R" export LC_CTYPE=$LANG diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 221989502..e26fef6d3 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -3,7 +3,9 @@ #Fully support screen, iterm, and probably most modern xterm and rxvt #Limited support for Apple Terminal (Terminal can't set window or tab separately) function title { - [ "$DISABLE_AUTO_TITLE" != "true" ] || return + if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then + return + fi if [[ "$TERM" == screen* ]]; then print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then |