diff options
-rw-r--r-- | lib/key-bindings.zsh | 4 | ||||
-rw-r--r-- | plugins/debian/debian.plugin.zsh | 4 | ||||
-rw-r--r-- | plugins/rake-fast/README.md | 23 | ||||
-rw-r--r-- | plugins/rake-fast/rake-fast.plugin.zsh | 17 | ||||
-rw-r--r-- | templates/zshrc.zsh-template | 26 |
5 files changed, 40 insertions, 34 deletions
diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index 5f3f237c7..9063c6a18 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -46,8 +46,8 @@ bindkey ' ' magic-space # [Space] - do history exp bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word -if [[ "${terminfo[kdch1]}" != "" ]]; then - bindkey "${terminfo[kdch1]}" reverse-menu-complete # [Shift-Tab] - move through the completion menu backwards +if [[ "${terminfo[kcbt]}" != "" ]]; then + bindkey "${terminfo[kcbt]}" reverse-menu-complete # [Shift-Tab] - move through the completion menu backwards fi bindkey '^?' backward-delete-char # [Backspace] - delete backward diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index 28dfb82a5..6e45e0521 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -21,8 +21,8 @@ fi # Aliases ################################################################### # These are for more obscure uses of apt-get and aptitude that aren't covered # below. -alias ag='apt-get' -alias ap='aptitude' +alias age='apt-get' +alias api='aptitude' # Some self-explanatory aliases alias acs="apt-cache search" diff --git a/plugins/rake-fast/README.md b/plugins/rake-fast/README.md new file mode 100644 index 000000000..f56142f69 --- /dev/null +++ b/plugins/rake-fast/README.md @@ -0,0 +1,23 @@ +# rake-fast + +Fast rake autocompletion plugin. + +This script caches the output for later usage and significantly speeds it up. It generates a .rake_tasks cache file in parallel to the Rakefile. It also checks the file modification dates to see if it needs to regenerate the cache file. + +This is entirely based on [this pull request by Ullrich Schäfer](https://github.com/robb/.dotfiles/pull/10/), which is inspired by [this Ruby on Rails trick from 2006](http://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh/). + +Think about that. 2006. + +## Installation + +Just add the plugin to your `.zshrc`: + +```bash +plugins=(foo bar rake-fast) +``` + +You might consider adding `.rake_tasks` to your [global .gitignore](https://help.github.com/articles/ignoring-files#global-gitignore) + +## Usage + +`rake`, then press tab diff --git a/plugins/rake-fast/rake-fast.plugin.zsh b/plugins/rake-fast/rake-fast.plugin.zsh index 320855233..545b6c049 100644 --- a/plugins/rake-fast/rake-fast.plugin.zsh +++ b/plugins/rake-fast/rake-fast.plugin.zsh @@ -1,20 +1,3 @@ -# rake-fast -# Fast rake autocompletion plugin for oh-my-zsh - -# This script caches the output for later usage and significantly speeds it up. -# It generates a .rake_tasks file in parallel to the Rakefile. - -# You'll want to add `.rake_tasks` to your global .git_ignore file: -# https://help.github.com/articles/ignoring-files#global-gitignore - -# You can force .rake_tasks to refresh with: -# $ rake_refresh - -# This is entirely based on Ullrich Schäfer's work -# (https://github.com/robb/.dotfiles/pull/10/), -# which is inspired by this Ruby on Rails trick from 2006: -# http://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh/ - _rake_refresh () { if [ -f .rake_tasks ]; then rm .rake_tasks diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 7b7f1df85..5b2a6cf49 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -11,34 +11,34 @@ ZSH_THEME="robbyrussell" # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -# Set this to use case-sensitive completion +# Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" -# Uncomment this to disable bi-weekly auto-update checks +# Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" -# Uncomment to change how often to auto-update? (in days) +# Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 -# Uncomment following line if you want to disable colors in ls +# Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" -# Uncomment following line if you want to disable autosetting terminal title. +# Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" -# Uncomment following line if you want to disable command autocorrection +# Uncomment the following line to disable command auto-correction. # DISABLE_CORRECTION="true" -# Uncomment following line if you want red dots to be displayed while waiting for completion +# Uncomment the following line to display red dots whilst waiting for completion. # COMPLETION_WAITING_DOTS="true" -# Uncomment following line if you want to disable marking untracked files under -# VCS as dirty. This makes repository status check for large repositories much, -# much faster. +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" -# Uncomment following line if you want to the command execution time stamp shown -# in the history command output. +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # HIST_STAMPS="mm/dd/yyyy" @@ -60,7 +60,7 @@ export PATH=$HOME/bin:/usr/local/bin:$PATH # You may need to manually set your language environment # export LANG=en_US.UTF-8 -# # Preferred editor for local and remote sessions +# Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' # else |