{"id":27804049,"url":"https://github.com/brunoarueira/fish-scripts","last_synced_at":"2025-10-04T08:21:31.518Z","repository":{"id":12617118,"uuid":"15288280","full_name":"brunoarueira/fish-scripts","owner":"brunoarueira","description":"Fish scripts, because it's fun!","archived":false,"fork":false,"pushed_at":"2025-09-09T13:35:56.000Z","size":152,"stargazers_count":7,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-09T16:37:02.987Z","etag":null,"topics":["fish","fish-scripts","fish-shell","shell"],"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/brunoarueira.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2013-12-18T16:30:36.000Z","updated_at":"2025-09-09T13:36:00.000Z","dependencies_parsed_at":"2024-01-17T13:10:05.296Z","dependency_job_id":"85db8d38-dead-418c-8a10-9d8640a7369b","html_url":"https://github.com/brunoarueira/fish-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brunoarueira/fish-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoarueira%2Ffish-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoarueira%2Ffish-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoarueira%2Ffish-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoarueira%2Ffish-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunoarueira","download_url":"https://codeload.github.com/brunoarueira/fish-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunoarueira%2Ffish-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278284043,"owners_count":25961422,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fish","fish-scripts","fish-shell","shell"],"created_at":"2025-05-01T08:17:25.633Z","updated_at":"2025-10-04T08:21:31.512Z","avatar_url":"https://github.com/brunoarueira.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Fish Shell Configuration\n\nThis repository contains my personal configuration files for the [Fish shell](https://fishshell.com/).\n\n## Overview\n\nThis setup aims for a clean, efficient, and customized Fish shell environment. It leverages Fish's features like autoloading functions and the `conf.d` directory for modular configuration.\n\n## Structure\n\nThe configuration is organized into the following main files and directories:\n\n*   **`config.fish`**: The main entry point for the Fish configuration. It primarily sources other configuration files and sets the theme.\n*   **`conf.d/`**: Contains configuration snippets that are automatically sourced by Fish in alphabetical order. This is used for setting environment variables, modifying the PATH, initializing tools, and defining aliases.\n    *   `00_env_vars.fish`: Sets up initial environment variables, potentially based on the operating system.\n    *   `10_path.fish`: Modifies the `$PATH` variable to include custom binary locations.\n    *   `30_tools.fish`: Configures various command-line tools like `fzf`, `direnv`, etc.\n    *   `40_aliases.fish` (Recommended location): Contains custom shell aliases.\n*   **`functions/`**: Holds custom Fish functions. Fish automatically loads `.fish` files in this directory when the corresponding function is called for the first time.\n*   **`themes/`**: Contains custom Fish themes. The active theme (`Nordic.theme` in this case) is usually selected in `config.fish`.\n*   **`secrets.fish`**: (Optional, **should be gitignored**) Used for sourcing sensitive information like API keys or private environment variables. This file is sourced by `config.fish` if it exists.\n\n## Key Features \u0026 Tools\n\nThis configuration includes setup for:\n\n*   **Environment Variables:** Sensible defaults and OS-specific settings.\n*   **PATH Management:** Cleanly adds necessary directories to the execution path.\n*   **Developer Tools:** Configuration for `fzf` (fuzzy finder), `yarn` (package manager), `direnv` (directory-specific environments).\n*   **Custom Prompt:** Defined in `functions/fish_prompt.fish`.\n*   **Theme:** Uses the `Nordic` theme.\n\n## Customization\n\n*   **Aliases:** Add new aliases to `conf.d/aliases.fish`.\n*   **Functions:** Create new `.fish` files in the `functions/` directory, one file per function, named after the function (e.g., `my_function.fish` for `function my_function`).\n*   **Environment Variables:** Add new variables to `conf.d/00_env_vars.fish` or create a new file in `conf.d/` (e.g., `90_custom_vars.fish`).\n*   **Secrets:** Add sensitive data to `secrets.fish` (ensure this file is in your `.gitignore`).\n\n## Installation\n\n```sh\ngit clone https://github.com/brunoarueira/fish-scripts ~/.config/fish\n```\n\n## Functions\n\n| Name               | Arguments       | Description                                                      |\n| ------------------ | --------------- | ---------------------------------------------------------------- |\n| `-`                |                 | `cd -`, return to the previous path                              |\n| `cleanup-asl-log`  |                 | Remove `*.asl` from `/private/var/log/asl/`                      |\n| `csv-show`         | `csv file path` | Show CSV file content on the console                             |\n| `export`           | `VAR=value`     | Like `export` in bash                                            |\n| `extract`          | `archive_file`  | Extract various archive types                                    |\n| `fish_prompt`      |                 | Defines the custom fish prompt                                   |\n| `kcontext`         | `[context]`     | List contexts to switch after select it                          |\n| `kdpod`            | `namespace`     | Describe pod through kubectl on the specified namespace          |\n| `kexec`            | `namespace`     | Access the terminal on pods at the specified namespace           |\n| `klogs`            | `namespace`     | Access logs through kubectl from pods on the specified namespace |\n| `last_modified`    | `[path]`        | Shows last modified files/dirs                                   |\n| `mk`               | `process_name`  | Monster kill a process                                           |\n| `psg`              | `process_name`  | List processes matching `process_name`                           |\n| `ssm`              | `[ssm_cmd]`     | Connect through aws ssm to instances on ec2                      |\n| `toggle`           | `app_name`      | Toggle the visibility of an application on MacOS                 |\n\n## Contributing\n\n1. Fork it ( https://github.com/brunoarueira/fish-scripts/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunoarueira%2Ffish-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunoarueira%2Ffish-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunoarueira%2Ffish-scripts/lists"}