Skip to content

ryotako/fish-global-abbreviation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fish-global-abbreviation

Build Status

Global abbreviation for fish shell

demo.gif

Install

With fisherman

fisher add ryotako/fish-global-abbreviation

Usage

# add abbreviation
gabbr G '| grep'
gabbr (-a|--add) G '| grep'

# show abbreviation
gabbr
gabbr (-s|--show)

# list abbreviation names
gabbr (-l|--list)

# erase abbreviation
gabbr (-e|--erase)

# reload abbreviations
gabbr (-r|--reload)

# add function-abbreviation
# Function-abbreviations are evaluated when they are expanded.
gabbr (-f|--function) D 'date +%Y/%m/%d'

# add suffix-abbreviation
# Suffix-abbreviations work in the same way as zsh's suffix aliases.
gabbr (-x|--suffix) py python

Setup

gabbr_config

optional

$gabbr_config is the file path for saving global abbreviation configurations. If $gabbr_config variable exists, gabbr output configurations to $gabbr_config. You can keep all abbreviations under git control by committing that file.

About

Global abbreviation for fish shell

Topics

Resources

License

Stars

15 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages