https://github.com/lengyijun/fc-fish
Bash style fc for Fish
https://github.com/lengyijun/fc-fish
fc fish fish-plugin fish-plugins fish-shell fisher
Last synced: about 1 month ago
JSON representation
Bash style fc for Fish
- Host: GitHub
- URL: https://github.com/lengyijun/fc-fish
- Owner: lengyijun
- Created: 2023-01-27T09:53:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T11:45:28.000Z (about 2 years ago)
- Last Synced: 2025-03-13T00:03:17.767Z (about 2 months ago)
- Topics: fc, fish, fish-plugin, fish-plugins, fish-shell, fisher
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# fc in Fish
Simulate `fc` command in fish
## Installation
Install with [Fisher](https://github.com/jorgebucaran/fisher "fish plugin manager"):
```console
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
- [fishbang](https://github.com/BrewingWeasel/fishbang) - Bash bang command for fish## Reference
1. `man fc`
2. https://github.com/fish-shell/fish-shell/issues/5030
3. https://github.com/fish-shell/fish-shell/pull/7121