lengyijun / fc-fish

Bash style fc for Fish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Bash style fc for Fish


Languages

Language:Shell 100.0%