{"id":22120331,"url":"https://github.com/maxpleaner/fish_functions","last_synced_at":"2025-07-28T19:42:14.358Z","repository":{"id":84577045,"uuid":"88020320","full_name":"MaxPleaner/fish_functions","owner":"MaxPleaner","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-08T17:51:05.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:34:28.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MaxPleaner.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":"2017-04-12T07:01:04.000Z","updated_at":"2023-03-05T02:35:45.000Z","dependencies_parsed_at":"2023-03-12T06:30:56.949Z","dependency_job_id":null,"html_url":"https://github.com/MaxPleaner/fish_functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaxPleaner/fish_functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Ffish_functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Ffish_functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Ffish_functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Ffish_functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxPleaner","download_url":"https://codeload.github.com/MaxPleaner/fish_functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxPleaner%2Ffish_functions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263573890,"owners_count":23482757,"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":[],"created_at":"2024-12-01T14:22:50.053Z","updated_at":"2025-07-04T16:08:49.182Z","avatar_url":"https://github.com/MaxPleaner.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fish has 'functions' similar to bash's aliases.\n\nCopy these into ~/.config/fish/functions (on ubuntu) and then restart fish.\n\nThe following script can be used to clone this repo and copy the files:\n\n```sh\ngit clone https://github.com/maxpleaner/fish_functions\ncd fish_functions\nfor filename in *.fish; do\n  new_path=~/.config/fish/functions/$filename\n  if [ -f $new_path ]; then\n    echo \"$new_path already exists\" 1\u003e\u00262\n    exit 64\n  fi\n  cp $filename $new_path\n  echo \"copied $new_path\"\ndone;\n```\n\nThere are some \"meta functions\" included:\n\n- `fn \u003cname\u003e \u003cbody\u003e` to create a function.  \n  Note that `$argv` in the function must be written as `\\$argv`,  \n  e.g. `fn agi \"sudo apt-get install \\$argv\"`\n- `fs \u003cname\u003e` an alias for funcsave\n- `cfn \u003cname\u003e` stands for \"cat function\", shows the body of the function\n- `rmfn \u003cname\u003e` removes a function\n- `fns` lists the functions\n- `cfdns` changes into the functions directory\n- `backup_functions` - performs a backup to git of the functions folder\n  - there must be a git repo in there on the master branch\n- `fndoc \u003cstring\u003e` appends a line to the readme\n- **backup_functions**: `cd ~/.config/fish/functions; git add -A; git commit -m \"\u003cmessage\u003e\"; git push origin master; cd -` _backups the functions folder into a repo_ - **cdfns**: `cd \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpleaner%2Ffish_functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxpleaner%2Ffish_functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpleaner%2Ffish_functions/lists"}