Skip to content

lengyijun/fc-fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

fc in Fish

Simulate fc command in fish

Installation

Install with Fisher:

fisher install lengyijun/fc-fish

Support

# edit the last command
fc
fc -1

# edit the second last command
fc -2
# view last 16 command
fc -l 

# view last 16 command in reverse order
fc -l -r
# edit last 3 command
fc -3 -1

Not support

# fish doesn't have (positive) key for history
fc 15 22 
# -s not supported
fc -s "foo"
# zsh specific parameter
fc -fl
fc -ld

Note

In fish, we can use upparrow alt+e or upparrow alt+v to edit previous command

Similar plugin

Reference

  1. man fc
  2. fish-shell/fish-shell#5030
  3. fish-shell/fish-shell#7121

Releases

No releases published

Packages

No packages published

Languages