{"id":26232509,"url":"https://github.com/lengyijun/fc-fish","last_synced_at":"2025-03-23T17:31:24.288Z","repository":{"id":67132063,"uuid":"593977674","full_name":"lengyijun/fc-fish","owner":"lengyijun","description":"Bash style fc for Fish","archived":false,"fork":false,"pushed_at":"2023-04-07T11:45:28.000Z","size":1,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T00:03:17.767Z","etag":null,"topics":["fc","fish","fish-plugin","fish-plugins","fish-shell","fisher"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lengyijun.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-27T09:53:09.000Z","updated_at":"2024-02-08T05:00:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9c595c9-239c-45dd-aa3a-c35417731912","html_url":"https://github.com/lengyijun/fc-fish","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Ffc-fish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Ffc-fish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Ffc-fish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Ffc-fish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lengyijun","download_url":"https://codeload.github.com/lengyijun/fc-fish/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140621,"owners_count":20567411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fc","fish","fish-plugin","fish-plugins","fish-shell","fisher"],"created_at":"2025-03-13T00:02:54.652Z","updated_at":"2025-03-23T17:31:24.232Z","avatar_url":"https://github.com/lengyijun.png","language":"Shell","funding_links":[],"categories":["Plugins","shell"],"sub_categories":["work like bash"],"readme":"# fc in Fish\n\nSimulate `fc` command in fish\n\n## Installation\nInstall with [Fisher](https://github.com/jorgebucaran/fisher \"fish plugin manager\"):\n```console\nfisher install lengyijun/fc-fish\n```\n\n## Support\n\n```\n# edit the last command\nfc\nfc -1\n\n# edit the second last command\nfc -2\n```\n\n```\n# view last 16 command\nfc -l \n\n# view last 16 command in reverse order\nfc -l -r\n```\n\n```\n# edit last 3 command\nfc -3 -1\n```\n\n## Not support\n```\n# fish doesn't have (positive) key for history\nfc 15 22 \n```\n\n```\n# -s not supported\nfc -s \"foo\"\n```\n\n```\n# zsh specific parameter\nfc -fl\nfc -ld\n```\n\n## Note\n\nIn fish, we can use `upparrow alt+e` or `upparrow alt+v` to edit previous command\n\n## Similar plugin\n- [fishbang](https://github.com/BrewingWeasel/fishbang) - Bash bang command for fish\n\n## Reference\n1. `man fc`\n2. https://github.com/fish-shell/fish-shell/issues/5030\n3. https://github.com/fish-shell/fish-shell/pull/7121\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengyijun%2Ffc-fish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flengyijun%2Ffc-fish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengyijun%2Ffc-fish/lists"}