Skip to content
This zsh plugin provides functionality similar to Vim's abbreviation expansion.
Branch: master
Clone or download
momo-lab Merge pull request #1 from 39e/master
Change `/bin/zsh` to `/usr/bin/env zsh`
Latest commit b6fd510 Feb 12, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
LICENSE Add LICENSE Nov 24, 2016
README.md
abbrev-alias.plugin.zsh

README.md

zsh-abbrev-alias

This zsh plugin provides functionality similar to Vim's abbreviation expansion.

This plugin consulted http://zshwiki.org/home/examples/zleiab .

Installation

Using zplug

zplug "momo-lab/zsh-abbrev-alias"

Alias settings are written after zplug load.

For Example

$ abbrev-alias -g G="| grep"
$ ps aux G<push space key>
->
$ ps aux | grep 
$ git branch
* master
$ abbrev-alias -f B="git symbolic-ref --short HEAD"
$ git push origin B<push space key>
->
$ git push origin master 

Help

Show abbrev-alias --help.

$ abbrev-alias --help
abbrev-alias 0.1.0
usage: abbrev-alias [OPTIONS] {name=value ...}
       abbrev-alias -u {name ...}
       abbrev-alias --init

options:
  -c, --command   register as 'alias name=value'
  -g, --global    register as 'alias -g name=value'
  -f, --function  register as 'alias -g name=$(value)'

  -i, --init      initialize abbrev-alias. execute with .zshrc
  -h, --help      show this help
  -v, --version   show version
You can’t perform that action at this time.