Skip to content

rtks/fish-global-abbreviation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fish-global-abbreviation

Slack Room Build Status

Global abbreviation for fish shell

demo.gif

Install

With fisherman

fisher 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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%