Skip to content

This bash functions provides functionality similar to Vim's abbreviation expansion.

License

Notifications You must be signed in to change notification settings

momo-lab/bash-abbrev-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

bash-abbrev-alias

This bash functions provides functionality similar to Vim's abbreviation expansion.

See https://github.com/momo-lab/zsh-abbrev-alias for zsh version.

Installation

Get bash-abbrev-alias.

$ cd /path/to/install
$ git clone https://github.com/momo-lab/bash-abbrev-alias.git

Append .bashrc file.

source /path/to/install/bash-abbrev-alias/abbrev-alias.plugin.bash

For Example

$ abbrev-alias -g G="| grep"
$ ps aux G<push space key>
->
$ ps aux | grep 
$ git branch
* master
$ abbrev-alias -ge B='$(git symbolic-ref --short HEAD 2> /dev/null)'
$ 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 ...}

options:
  -c, --command   register as 'alias name=value'
  -g, --global    register as 'alias -g name=value' like
  -e, --eval      evaluates subshells on expansion
  -u, --unset     unregister alias
  -h, --help      show this help
  -v, --version   show version

About

This bash functions provides functionality similar to Vim's abbreviation expansion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages