diff --git a/.editorconfig b/.editorconfig index 689ce2d6..804e9471 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - https://dotfiles.io +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/.github/CODE-OF-CONDUCT.md b/.github/CODE-OF-CONDUCT.md index f0458d2a..6fe5e0a4 100644 --- a/.github/CODE-OF-CONDUCT.md +++ b/.github/CODE-OF-CONDUCT.md @@ -1,20 +1,31 @@ -# Contributor Covenant Code of Conduct + -[![Banner representing the Dotfiles Library][logo]][website] + -## Our Pledge + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## Contributor Covenant Code of Conduct + +### Our Pledge In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, gender identity and expression, level of -experience, nationality, personal appearance, race, religion, or sexual identity -and orientation. +contributors and maintainers pledge to making participation in our +project and our community a harassment-free experience for everyone, +regardless of age, body size, disability, ethnicity, gender identity and +expression, level of experience, nationality, personal appearance, race, +religion, or sexual identity and orientation. -## Our Standards +### Our Standards -Examples of behaviour that contributes to creating a positive environment -include: +Examples of behaviour that contributes to creating a positive +environment include: - Using welcoming and inclusive language - Being respectful of differing viewpoints and experiences @@ -24,55 +35,59 @@ include: Examples of unacceptable behaviour by participants include: -- The use of sexualized language or imagery and unwelcome sexual attention or - advances -- Trolling, insulting/derogatory comments, and personal or political attacks +- The use of sexualized language or imagery and unwelcome sexual + attention or advances +- Trolling, insulting/derogatory comments, and personal or political + attacks - Public or private harassment -- Publishing others' private information, such as a physical or electronic - address, without explicit permission +- Publishing others' private information, such as a physical or + electronic address, without explicit permission - Other conduct which could reasonably be considered inappropriate in a professional setting -## Our Responsibilities +### Our Responsibilities -Project maintainers are responsible for clarifying the standards of acceptable -behaviour and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behaviour. +Project maintainers are responsible for clarifying the standards of +acceptable behaviour and are expected to take appropriate and fair +corrective action in response to any instances of unacceptable +behaviour. -Project maintainers have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, or to ban temporarily or permanently any -contributor for other behaviours that they deem inappropriate, threatening, -offensive, or harmful. +Project maintainers have the right and responsibility to remove, edit, +or reject comments, commits, code, wiki edits, issues, and other +contributions that are not aligned to this Code of Conduct, or to ban +temporarily or permanently any contributor for other behaviours that +they deem inappropriate, threatening, offensive, or harmful. -## Scope +### Scope -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. +This Code of Conduct applies both within project spaces and in public +spaces when an individual is representing the project or its community. +Examples of representing a project or community include using an +official project e-mail address, posting via an official social media +account, or acting as an appointed representative at an online or +offline event. Representation of a project may be further defined and +clarified by project maintainers. -## Enforcement +### Enforcement -Instances of abusive, harassing, or otherwise unacceptable behaviour may be -reported by contacting the project team. The project team will review and -investigate all complaints, and will respond in a way that it deems appropriate -to the circumstances. The project team is obligated to maintain confidentiality -with regard to the reporter of an incident. Further details of specific -enforcement policies may be posted separately. +Instances of abusive, harassing, or otherwise unacceptable behaviour may +be reported by contacting the project team. The project team will +review and investigate all complaints, and will respond in a way that it +deems appropriate to the circumstances. The project team is obligated to +maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted +separately. -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. +Project maintainers who do not follow or enforce the Code of Conduct in +good faith may face temporary or permanent repercussions as determined +by other members of the project's leadership. -## Attribution +### Attribution -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 1.4, available at [http://contributor-covenant.org/version/1/4][version] +This Code of Conduct is adapted from the +[Contributor Covenant][homepage], version 1.4, available at +[http://contributor-covenant.org/version/1/4][version] [homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/4/ -[logo]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/dotfiles.svg -[website]: https://dotfiles.io +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 08413bf0..62766f37 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,31 +1,43 @@ -# Contributing to Dotfiles + -[![Banner representing the Dotfiles Library][logo]][website] + -Thank you so much for wanting to contribute to Dotfiles! There are a couple ways -to help out. + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## Contributing to Dotfiles + +Thank you so much for wanting to contribute to Dotfiles! There are a +couple ways to help out. ## Evangelize Just tell people about Dotfiles. We believe that a bigger, more involved -community makes for a better product, and that better products make the world a -better place. We can always use more feedback and learn from you. +community makes for a better product, and that better products make the +world a better place. We can always use more feedback and learn from you. ## How to Contribute -Please find down here, our guides for submitting issues and pull requests. +Please find down here, our guides for submitting issues and pull +requests. ### Bug Reports -If you encounter a bug that hasn't already been filled, please file a bug -report. Let us know of things we should fix, things we should add, questions, -etc. +If you encounter a bug that hasn't already been filled, please file a +bug report. Let us know of things we should fix, things we should add, +questions, etc. -Warning us of a bug is possibly the single most valuable contribution you can -make to Dotfiles. +Warning us of a bug is possibly the single most valuable contribution +you can make to Dotfiles. -- Head [here](https://github.com/reedia/dotfiles/issues/new) to submit a new - issue. +- Head [here](https://github.com/reedia/dotfiles/issues/new) to submit + a new issue. - Include a descriptive title that is straight to the point. - Write a detailed description on what the issue is all about. - Wait for someone to get to the issue and add labels. @@ -33,19 +45,20 @@ make to Dotfiles. ### Code Contributions -Contributing code is one of the more difficult ways to contribute to Dotfiles. +Contributing code is one of the more difficult ways to contribute to +Dotfiles. #### Feature Requests -Filling feature requests is one of the most popular ways to contribute to -Dotfiles. +Filling feature requests is one of the most popular ways to contribute +to Dotfiles. -Is there some feature request that you'd like to code up yourself? Is there a -feature you asked for yourself that you'd like to code? +Is there some feature request that you'd like to code up yourself? Is +there a feature you asked for yourself that you'd like to code? -Here's how to contribute code for a new feature to Dotfiles. Pull Requests -allow you to share your own code with us, and we can merge it into the main -repo. +Here's how to contribute code for a new feature to Dotfiles. Pull +requests allow you to share your own code with us, and we can merge it +into the main repo. #### Adding Code @@ -55,13 +68,14 @@ repo. #### Fixing an Issue -Have you found a solution to an issue? Here is how you can submit your code to -Dotfiles. +Have you found a solution to an issue? Here is how you can submit your +code to Dotfiles. - Fork the repo, and refer above for how to change up code. -- Head to your local fork of the repo, and click the "New Pull Request" button. +- Head to your local fork of the repo, and click the "New Pull Request" + button. - Include a title that is straight to the point. -- Wait for someone to review the pull request, and then merge your pull request! +- Wait for someone to review the pull request, and then merge your pull + request! -[logo]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/dotfiles.svg -[website]: https://dotfiles.io +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 23716827..cf9db9e9 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -1,18 +1,30 @@ -# Security + -[![Banner representing the Dotfiles Library][logo]][website] + -We take the security of our software products and services seriously, which -includes all source code repositories managed through our GitHub repositories. + -If you believe you have found a security vulnerability in any of our repository, -please report it to us as described below. +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## Security + +We take the security of our software products and services seriously, +which includes all source code repositories managed through our GitHub +repositories. + +If you believe you have found a security vulnerability in any of our +repository, please report it to us as described below. ## Reporting Security Issues -Please include the requested information listed below (as much as you can -provide) to help us better understand the nature and scope of the possible -issue: +Please include the requested information listed below (as much as you +can provide) to help us better understand the nature and scope of the +possible issue: - Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) @@ -25,5 +37,4 @@ issue: This information will help us triage your report more quickly. -[logo]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/dotfiles.svg -[website]: https://dotfiles.io +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4ecd9cf..e676542c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,14 +15,14 @@ jobs: steps: - run: echo ${{github.ref}} - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2.2.2 + - uses: pnpm/action-setup@v2.2.4 with: version: 7 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: "pnpm" @@ -39,7 +39,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.2.2 + - uses: pnpm/action-setup@v2.2.4 with: version: 7 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index b8389b6f..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Mark stale issues and pull requests - -on: - schedule: - - cron: '35 12 * * *' - -jobs: - stale: - - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' diff --git a/.gitignore b/.gitignore index 23da8b72..7a5c63a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/.npmrc b/.npmrc index 4ca7bc0e..b41518c1 100644 --- a/.npmrc +++ b/.npmrc @@ -1,6 +1,7 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT + registry=https://npm.pkg.github.com/sebastienrousseau @sebastienrousseau:registry=https://registry.npmjs.org # Switch to npm when needed diff --git a/COPYRIGHT b/COPYRIGHT index 2e59e22a..d353f353 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,6 +1,6 @@ /* -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/Makefile b/Makefile index 289467ee..030be1f1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #!/usr/bin/env make -f -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/README.md b/README.md index d2e06f6f..bead8047 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,15 @@ -# Dotfiles + -[![Banner representing the Dotfiles Library][logo]][website-url] + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] [![Codacy][codacy-grade]][codacy-url] [![Contributors][contributors-shield]][contributors-url] @@ -8,105 +17,118 @@ [![License][license]][license-url] [![Love][love]][website-url] -**[Website][website-url] β€’ [Documentation][github-url] -β€’ [Report Bug][issues-url] -β€’ [Request Feature][issues-url] -β€’ [Contributing Guidelines][contributing-url]** +β€’ [Website][website-url] β€’ [Documentation][github-url] +β€’ [Report Bug][issues-url] β€’ [Request Feature][issues-url] +β€’ [Contributing Guidelines][contributing-url] -## πŸ‘‹ Welcome to Dotfiles (v0.2.464) +![divider][divider] -### Simply designed to fit your shell life +## Welcome to Dotfiles (v0.2.465) πŸ‘‹ -Dotfiles are a set of macOS, Linux and Windows configuration files. They are -aimed at making your life easier by providing a set of scripts and configuration -files with new ways to get things done. +## Overview πŸ“– -[![Getting Started][getting_started]][getting-started-url] -[![Download Dotfiles v0.2.464][download_button]][download-url] +Dotfiles are a powerful set of configuration files for macOS, Linux, and +Windows providing scripts and customized settings to streamline your +workflow. These files are an essential tool for developers and users who +want to modify their environment and applications to their exact needs. -Dotfiles aggregates a collection of standalone configuration files (dotfiles) -combined into a `lib` directory that can be used to customize your development -environment across numerous computers and operating systems (macOS, Windows, -Linux). +The Dotfiles library are combined into a single `lib` directory. This +directory allows you to easily setup your development environment across +numerous computers and operating systems, ensuring consistency and +productivity no matter where you work. -The Dotfiles provides modular configuration files (aliases, functions and paths) -built for speed, higher performance, with the aim of helping you have an easy -and centralized way to configure your environment and applications. + +
+
+ -![divider][divider] +[![Getting Started][getting_started]][getting-started-url] +[![Download Dotfiles v0.2.465][download_button]][download-url] -## πŸ’Ό Documentation + +
+
+ -To read the documentation for Dotfiles, please visit: +## Features ✨ -- [Dotfiles website][website-url] -- [Dotfiles Docs GitHub repository][docs-url] +- A familiar feel and comforts across environments. +- A unified set of aliases and useful commands for macOS, Linux, and + Windows. +- Coloured multiplexer tmux prompt, customizable, and easy to use. +- Fast and flexible configuration files for Bash, Zsh, and more. +- Fully documented and translated into several languages (English, + French, and more). +- Supports Apple Silicon (M1) and Intel chips (x86_64). +- Uses Roboto Mono for Powerline font for enhanced terminal experience. ![divider][divider] -## πŸš€ Getting Started +## Getting Started πŸš€ -We are so delighted that you have decided to try Dotfiles, and are sure that you -will find Dotfiles unique and helpful. +We are so delighted that you have decided to try Dotfiles, and are sure +that you will find Dotfiles unique and helpful. -Dotfiles seeks to bring you high quality and easy to use standalone and modular -configuration files that can be used to customize your development environment -across numerous computers and operating systems (macOS, Windows, Linux). +To get started, please follow the instructions below. If you have any +questions, please feel free to contact us. -### πŸ”§ Installation +### Installation -We understand that you may want to install Dotfiles without reading long manuals -and lengthy documentation. In that respect, we have tried to make the -installation process as easy as possible. +We understand that you may want to install Dotfiles without reading long +manuals and lengthy documentation. In that respect, we have tried to +make the installation process as easy and automated as possible. -A range of installation methods are available, and we recommend that you choose -the one that best suits your needs. +A range of installation methods are available, and we recommend that you +choose the one that best suits your needs. -Before you begin your installation, use this information to ensure that you meet -all the hardware, software, and system requirements for installing Dotfiles. +Before you begin your installation, use this information to ensure that +you meet all the hardware, software, and system requirements for +installing Dotfiles. -#### πŸ“‹ System Requirements +#### 1) System Requirements -You need a modern operating system to install Dotfiles. Here's an non-exhaustive -list of the recommended operating systems that we support. +You need a modern operating system to install Dotfiles. Here's an non- +exhaustive list of the recommended operating systems that we support. -If you don't see your operating system listed, it may still work, but we have -yet been able to test it. If you have any issues, please let us know. +If you don't see your operating system listed, it may still work, but we +have yet been able to test it. If you have any issues, please let us +know. - macOS 10.15 or later - Windows 10 or later -- A Debian based distribution ([Debian][debian-url], [Ubuntu][ubuntu-url], -[PoP!_OS][pop-url], [Zorin OS][zorin-url], [Q4OS][q4-url], -[Kali Linux][kali-url], [Devuan][devuan-url], [Deepin][deepin-url], etc.) - -![divider][divider] - -#### βœ”οΈ Software Requirements - -The following programs must be installed on your system to install Dotfiles: - -- [**Bash**][bash-url] - a shell, or command language interpreter, for the GNU - operating system. -- Or [**Zsh**][zsh-url] - a shell designed for interactive use, although it is - also a powerful scripting language. -- [**Git**][git-url] - a free and open source distributed version control system - designed to handle everything from small to very large projects with speed and - efficiency. -- [**Curl**][curl-url] - a command line tool for transferring data with URL - syntax. -- [**Wget**][wget-url] - a free software package for retrieving files using - HTTP, HTTPS and FTP, the most widely-used Internet protocols. -- [**Make**][make-url] - a tool which controls the generation of executables and - other non-source files of a program from the program's source files. +- A Debian based distribution ([Debian][debian-url], +[Ubuntu][ubuntu-url], [PoP!_OS][pop-url], [Zorin OS][zorin-url], +[Q4OS][q4-url], [Kali Linux][kali-url], [Devuan][devuan-url], +[Deepin][deepin-url], etc.) + +#### 2) Software Requirements + +The following programs must be installed on your system to install +Dotfiles: + +- [**Bash**][bash-url] - a shell, or command language interpreter, for + the GNU operating system. +- Or [**Zsh**][zsh-url] - a shell designed for interactive use, although + it is also a powerful scripting language. +- [**Git**][git-url] - a free and open source distributed version + control system designed to handle everything from small to very large + projects with speed and efficiency. +- [**Curl**][curl-url] - a command line tool for transferring data with + URL syntax. +- [**Wget**][wget-url] - a free software package for retrieving files + using HTTP, HTTPS and FTP, the most widely-used Internet protocols. +- [**Make**][make-url] - a tool which controls the generation of + executables and other non-source files of a program from the + program's source files. - [**Shell**][shell-url] - a shell command line interpreter program for Unix-like operating systems. -- [**PnPM**][pnpm-url] - a package manager for JavaScript and Node.js. It is - fast, disk space efficient and reliable. +- [**PnPM**][pnpm-url] - a package manager for JavaScript and Node.js. + It is fast, disk space efficient and reliable. -#### Font +#### 3) Font Requirements -We recommend using a font such as `Roboto Mono for Powerline` for terminal and -vscode editor. +We recommend using a font such as `Roboto Mono for Powerline` for +terminal and vscode editor. On macOS, you can install the font using the following command: @@ -124,17 +146,28 @@ On Linux, you can install the font using the following command: sudo apt install fonts-roboto-mono-for-powerline ``` +### Documentation + +To read the documentation for Dotfiles, please visit: + +- [Dotfiles website][website-url] +- [Dotfiles Docs GitHub repository][docs-url] + +![divider][divider] + +## Usage πŸ“– + ### 1️⃣ Download Dotfiles -You can download the latest version (v0.2.464) with the following options: +You can download the latest version (v0.2.465) with the following options: - [**Manual download**][releases-url] - **The easiest way to install Dotfiles.** - [**Install with PnPM**][package-url] - `pnpm i @sebastienrousseau/dotfiles`. + `pnpm i @wwdseb/dotfiles`. - [**Install with Npm**][package-url] - `npm install @sebastienrousseau/dotfiles`. + `npm install @wwdseb/dotfiles`. - [**Install with Yarn**][package-url] - `yarn add @sebastienrousseau/dotfiles`. + `yarn add @wwdseb/dotfiles`. - **Clone the main repository** to get all source files including build scripts: `git clone https://github.com/sebastienrousseau/dotfiles.git`. This will clone the latest version of the Dotfiles repository. @@ -208,7 +241,7 @@ make help If you want to install Dotfiles using Node.js, you can run the following command in the `dist` directory located in your -`node_modules/@sebastienrousseau/dotfiles/dist` directory: +`node_modules/@wwdseb/dotfiles/dist` directory: ```bash node . @@ -246,209 +279,13 @@ Please refer to the [documentation][docs-url] for more information. ![divider][divider] -### 4️⃣ What's included - -Dotfiles contains core elements that are used to configure your shell, and -other components catered for your environment setup. - -Within the download you'll find all the Dotfiles source files grouped within -the `dist` folder. - -You'll see something like this: - -```bash -. -β”œβ”€β”€ bin -β”‚Β Β  β”œβ”€β”€ backup.d.ts -β”‚Β Β  β”œβ”€β”€ backup.d.ts.map -β”‚Β Β  β”œβ”€β”€ backup.js -β”‚Β Β  β”œβ”€β”€ backup.js.map -β”‚Β Β  β”œβ”€β”€ constants.d.ts -β”‚Β Β  β”œβ”€β”€ constants.d.ts.map -β”‚Β Β  β”œβ”€β”€ constants.js -β”‚Β Β  β”œβ”€β”€ constants.js.map -β”‚Β Β  β”œβ”€β”€ copy.d.ts -β”‚Β Β  β”œβ”€β”€ copy.d.ts.map -β”‚Β Β  β”œβ”€β”€ copy.js -β”‚Β Β  β”œβ”€β”€ copy.js.map -β”‚Β Β  β”œβ”€β”€ dotfiles.d.ts -β”‚Β Β  β”œβ”€β”€ dotfiles.d.ts.map -β”‚Β Β  β”œβ”€β”€ dotfiles.js -β”‚Β Β  β”œβ”€β”€ dotfiles.js.map -β”‚Β Β  β”œβ”€β”€ download.d.ts -β”‚Β Β  β”œβ”€β”€ download.d.ts.map -β”‚Β Β  β”œβ”€β”€ download.js -β”‚Β Β  β”œβ”€β”€ download.js.map -β”‚Β Β  β”œβ”€β”€ index.d.ts -β”‚Β Β  β”œβ”€β”€ index.d.ts.map -β”‚Β Β  β”œβ”€β”€ index.js -β”‚Β Β  β”œβ”€β”€ index.js.map -β”‚Β Β  β”œβ”€β”€ transfer.d.ts -β”‚Β Β  β”œβ”€β”€ transfer.d.ts.map -β”‚Β Β  β”œβ”€β”€ transfer.js -β”‚Β Β  β”œβ”€β”€ transfer.js.map -β”‚Β Β  β”œβ”€β”€ unpack.d.ts -β”‚Β Β  β”œβ”€β”€ unpack.d.ts.map -β”‚Β Β  β”œβ”€β”€ unpack.js -β”‚Β Β  └── unpack.js.map -β”œβ”€β”€ lib -β”‚Β Β  β”œβ”€β”€ aliases -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ default -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── default.aliases.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ gcloud -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── gcloud.aliases.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ git -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── git.aliases.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ heroku -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── heroku.aliases.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ jekyll -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── jekyll.aliases.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ pnpm -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── pnpm.aliases.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ subversion -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── subversion.aliases.sh -β”‚Β Β  β”‚Β Β  └── tmux -β”‚Β Β  β”‚Β Β  └── tmux.aliases.sh -β”‚Β Β  β”œβ”€β”€ configurations -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bash -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── bashrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ curl -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ cacert.pem -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── curlrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ default -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ color.sh -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ constants.sh -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ editor.sh -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── prompt.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ gem -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── gemrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ input -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── inputrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ jshint -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── jshintrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ nano -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── nanorc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ profile -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── profile -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ tmux -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ default -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ display -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ linux -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ navigation -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ panes -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ theme -β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ tmux -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── vi -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ vim -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── vimrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ wget -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── wgetrc -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ zsh -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── zshrc -β”‚Β Β  β”‚Β Β  └── README.md -β”‚Β Β  β”œβ”€β”€ functions -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ README.md -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ cdls.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ changediskpwd.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ code.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ countdown.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ curlheader.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ curltime.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ encode64.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ environment.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ extract.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ filehead.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ genpwd.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ goto.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ headers.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ hidehiddenfiles.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ history-all.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ hostinfo.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ hstats.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ httpdebug.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keygen.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ last.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ logout.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lowercase.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ macos.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ matrix.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ mcd.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ mount_read_only.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ myproc.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ prependpath.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ print.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ql.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ rd.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ remove_disk.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ren.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ rm.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ rps.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ showhiddenfiles.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ size.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ stopwatch.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ trash.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ tree.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ uppercase.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ uuidgen.tmp -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ view-source.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ vscode.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ whoisport.sh -β”‚Β Β  β”‚Β Β  └── zipf.sh -β”‚Β Β  β”œβ”€β”€ paths -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ant -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── ant.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ default -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── default.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ homebrew -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── homebrew.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ java -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── java.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ maven -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── maven.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ node -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── node.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ nvm -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── nvm.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ pnpm -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── pnpm.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ python -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── python.paths.sh -β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ruby -β”‚Β Β  β”‚Β Β  β”‚Β Β  └── ruby.paths.sh -β”‚Β Β  β”‚Β Β  └── tmux -β”‚Β Β  β”‚Β Β  └── tmux.paths.sh -β”‚Β Β  β”œβ”€β”€ README.md -β”‚Β Β  β”œβ”€β”€ aliases.sh -β”‚Β Β  β”œβ”€β”€ configurations.sh -β”‚Β Β  β”œβ”€β”€ exit.sh -β”‚Β Β  β”œβ”€β”€ functions.sh -β”‚Β Β  β”œβ”€β”€ history.sh -β”‚Β Β  └── paths.sh -β”œβ”€β”€ scripts -β”‚Β Β  β”œβ”€β”€ backup.sh -β”‚Β Β  β”œβ”€β”€ banner.sh -β”‚Β Β  β”œβ”€β”€ build.sh -β”‚Β Β  β”œβ”€β”€ clean.sh -β”‚Β Β  β”œβ”€β”€ compile.sh -β”‚Β Β  β”œβ”€β”€ copy.sh -β”‚Β Β  β”œβ”€β”€ dotfiles.sh -β”‚Β Β  β”œβ”€β”€ download.sh -β”‚Β Β  β”œβ”€β”€ help.sh -β”‚Β Β  └── unpack.sh -β”œβ”€β”€ Makefile -└── filesizes.txt - -38 directories, 141 files - -``` - -## πŸ”— Releases +## Releases πŸ”— Releases are available on the [GitHub releases page][releases-url]. ![divider][divider] -## πŸš₯ Semantic versioning policy +## Semantic versioning policy πŸš₯ For transparency into our release cycle and in striving to maintain backward compatibility, `Dotfiles` follows [Semantic Versioning][semver-url]. @@ -480,7 +317,7 @@ Please read our [Code of Conduct][code-of-conduct-url]. ![divider][divider] -## ❀️ Contributing +## Contribution 🀝 Thank you for using Dotfiles! If you like the library, it would be great if you can give it a star ⭐ on [Github][github-url]. @@ -500,7 +337,7 @@ for further details on the process for submitting pull requests to us. ![divider][divider] -## πŸ₯‚ License +## License πŸ“ This project is licensed under the [MIT License][license-url] file for details. @@ -508,7 +345,7 @@ This project is licensed under the [MIT License][license-url] file for details. ![divider][divider] -## 🏒 Acknowledgements +## Acknowledgements πŸ’™ [Dotfiles][website-url] is beautifully crafted by these people and a bunch of awesome [contributors][contributors-url] @@ -526,7 +363,7 @@ awesome [contributors][contributors-url] [deepin-url]: https://www.deepin.org/en/ [devuan-url]: https://devuan.org/ [docs-url]: https://github.com/sebastienrousseau/dotfiles/docs -[download-url]: https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.464.tar.gz +[download-url]: https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.465.tar.gz [forks-url]: https://github.com/sebastienrousseau/dotfiles/network/members [fossa-url]: https://app.fossa.io/projects/git%2Bgithub.com%2Freedia%2Fdotfiles?ref=badge_large [getting-started-url]: https://github.com/sebastienrousseau/dotfiles#getting-started @@ -537,7 +374,7 @@ awesome [contributors][contributors-url] [kali-url]: https://www.kali.org/ [license-url]: https://opensource.org/licenses/MIT [make-url]: https://www.gnu.org/software/make/ -[package-url]:https://www.npmjs.com/package/@sebastienrousseau/dotfiles +[package-url]:https://www.npmjs.com/package/@wwdseb/dotfiles [pnpm-url]: https://pnpm.io [pop-url]: https://pop.system76.com/ [q4-url]: https://q4os.org/ @@ -551,6 +388,7 @@ awesome [contributors][contributors-url] [zorin-url]: https://zorinos.com/ [zsh-url]: https://www.zsh.org/ +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg [codacy-grade]: https://img.shields.io/codacy/grade/634cfc4de08e492ebcbb341631066241?style=for-the-badge "Codacy grade" [contributors-shield]: https://img.shields.io/github/contributors/sebastienrousseau/dotfiles.svg?style=for-the-badge "Contributors" [contributors-url]: https://github.com/sebastienrousseau/dotfiles/graphs/contributors "List of contributors" @@ -561,6 +399,5 @@ awesome [contributors][contributors-url] [getting_started]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/button-primary.svg "Getting Started" [gr]: https://avatars0.githubusercontent.com/u/35816108?s=117 "Graham Colgate" [license]: https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge\&color=ff69b4 "License" -[logo]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/dotfiles.svg "Dotfiles" [love]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/made-with-love.svg "Made with Love" [sr]: https://avatars0.githubusercontent.com/u/1394998?s=117 "Sebastien Rousseau" diff --git a/assets/README.md b/assets/README.md index 783f0761..076a86f9 100644 --- a/assets/README.md +++ b/assets/README.md @@ -1,6 +1,11 @@ # Dotfiles assets -![Banner representing the Dotfiles Library](/assets/dotfiles.svg) + + + + + This directory contains the following files and directories that are used by the dotfiles: diff --git a/bin/backup.js b/bin/backup.js index b606aa76..3b26a90c 100644 --- a/bin/backup.js +++ b/bin/backup.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/bin/constants.js b/bin/constants.js index 1fda6206..28de5ab3 100644 --- a/bin/constants.js +++ b/bin/constants.js @@ -1,13 +1,13 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ // πŸ…²πŸ…ΎπŸ…½πŸ†‚πŸ†ƒπŸ…°πŸ…½πŸ†ƒπŸ†‚ - Constants. -const version = "dotfiles-0.2.464.tgz"; -const dotfile = "https://registry.npmjs.org/@sebastienrousseau/dotfiles/-/dotfiles-0.2.464.tgz"; +const version = "dotfiles-0.2.465.tgz"; +const dotfile = "https://registry.npmjs.org/@wwdseb/dotfiles/-/dotfiles-0.2.465.tgz"; const aliases = [ ".bashrc", diff --git a/bin/copy.js b/bin/copy.js index 57eb9a3a..84a4f9e9 100644 --- a/bin/copy.js +++ b/bin/copy.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/bin/dotfiles.js b/bin/dotfiles.js index 49852da8..4ab9f520 100644 --- a/bin/dotfiles.js +++ b/bin/dotfiles.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/bin/download.js b/bin/download.js index a0894ed4..399b320f 100644 --- a/bin/download.js +++ b/bin/download.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/bin/index.js b/bin/index.js index a8959766..7180f4f4 100644 --- a/bin/index.js +++ b/bin/index.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/bin/transfer.js b/bin/transfer.js index a22b3b61..a47244ba 100644 --- a/bin/transfer.js +++ b/bin/transfer.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/bin/unpack.js b/bin/unpack.js index b4df5d8a..2e4493cf 100644 --- a/bin/unpack.js +++ b/bin/unpack.js @@ -1,6 +1,6 @@ /** -* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -* Made with β™₯ in London, UK by @sebastienrousseau +* πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +* Made with β™₯ in London, UK by @wwdseb * Copyright (c) 2015-2023. All rights reserved * License: MIT */ diff --git a/lib/README.md b/lib/README.md index ef28b4a1..feec2620 100644 --- a/lib/README.md +++ b/lib/README.md @@ -1,3 +1,8 @@ # Dotfiles aliases -![Banner representing the Dotfiles Library](/assets/dotfiles.svg) + + + + + diff --git a/lib/aliases.sh b/lib/aliases.sh index a2402cd2..d2fed99a 100644 --- a/lib/aliases.sh +++ b/lib/aliases.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets aliases for the current shell. # License: MIT # Script: aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io ## πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ diff --git a/lib/aliases/README.md b/lib/aliases/README.md new file mode 100644 index 00000000..844e22fb --- /dev/null +++ b/lib/aliases/README.md @@ -0,0 +1,47 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +- [Archives](archives/README.md) - Compress and extract files and directories in various formats on a Unix-based system. +- [Cd](cd/README.md) - Navigate the file system. +- [Chmod](chmod/README.md) - Change the permissions of files and directories. +- [Clear](clear/README.md) - Clear the terminal screen. +- [Configuration](configuration/README.md) - Configure the dotfiles. +- [Default](default/README.md) - Manage the default shell. +- [Dig](dig/README.md) - Query DNS name servers. +- [Disk Usage](disk-usage/README.md) - Display the disk usage of files and directories. +- [Editor](editor/README.md) - Manage the default text editor. +- [Find](find/README.md) - Search for files and directories. +- [gCloud](gcloud/README.md) - Manage the Google Cloud SDK. +- [Git](git/README.md) - Manage the Git version control system. +- [GNU](gnu/README.md) - Manage the GNU core utilities. +- [Heroku](heroku/README.md) - Manage the Heroku CLI. +- [Interactive](interactive/README.md) - Manage the interactive shell. +- [Jekyll](jekyll/README.md) - Manage the Jekyll static site generator. +- [List](list/README.md) - List files and directories. +- [macOS](macos/README.md) - Manage the macOS operating system. +- [make](make/README.md) - Manage the GNU make utility. +- [mkdir](mkdir/README.md) - Create directories. +- [npm](npm/README.md) - Manage the Node.js package manager. +- [permission](permission/README.md) - Manage the file permissions. +- [pnpm](pnpm/README.md) - Manage the pnpm package manager. +- [ps](ps/README.md) - Manage the process status. +- [rsync](rsync/README.md) - Manage the rsync file transfer utility. +- [rust](rust/README.md) - Manage the Rust programming language. +- [subversion](subversion/README.md) - Manage the Subversion version control system. +- [sudo](sudo/README.md) - Manage the superuser. +- [tmux](tmux/README.md) - Manage the tmux terminal multiplexer. +- [update](update/README.md) - Help users update the dotfiles. +- [uuid](uuid/README.md) - Help users generate UUIDs. +- [wget](wget/README.md) - Manage the wget utility. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/archives/README.md b/lib/aliases/archives/README.md index a0fdaaea..56ebda15 100644 --- a/lib/aliases/archives/README.md +++ b/lib/aliases/archives/README.md @@ -1,84 +1,56 @@ -# Compression Aliases + -This repository contains a set of shell aliases for various compression -tools. These aliases can be added to your shell profile to make it easy -to compress and extract files from the command line. + -## Aliases + -### 7z +# Dotfiles (v0.2.465) -- `c7z`: Compress a whole directory (including subdirectories) to a 7z file. -- `e7z`: Extract a whole directory (including subdirectories) from a 7z file. -- `l7z`: List contents of a 7z archive. -- `t7z`: Test integrity of a 7z archive. -- `x7z`: Extract files with full paths from a 7z archive. +Simply designed to fit your shell life 🐚 -### bzip2 +![Dotfiles banner][banner] -- `cbz2`: Compress a file to a bz2 file. -- `ebz2`: Extract a file from a bz2 file. +## πŸ…°πŸ†πŸ…²πŸ…·πŸ…ΈπŸ†…πŸ…΄πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -### gzip +This code provides a set of command aliases to help users compress and +extract files and directories in various formats on a Unix-based system. -- `cgz`: Compress a file to a gz file. -- `egz`: Extract a file from a gz file. +The following compression formats are supported: -### jar +- 7z +- bzip2 +- gzip +- jar +- lz4 +- lzma +- lzo +- pigz +- tar +- xz +- zstd +- zip -- `cjar`: Compress a whole directory (including subdirectories) to a jar file. -- `ejar`: Extract a whole directory (including subdirectories) from a jar file. +These aliases enable users to compress or extract files and directories +quickly by using simple commands. -### lzma +For example: -- `clzma`: Compress a file to a lzma file. -- `elzma`: Extract a file from a lzma file. +- `c7z` can be used to compress a whole directory (including + subdirectories) to a 7z file. +- `e7z` can be used to extract a whole directory (including + subdirectories) from a 7z file. -### rar +Similarly, there are aliases for compressing and extracting files and +directories in all supported formats. -- `crar`: Compress a file to a rar file. -- `erar`: Extract a file from a rar file. +The aliases are designed to be easy to remember and use, and they should +make the compression and extraction process much simpler for users. -### tar +Please note that some of the compression formats may require additional +software to be installed on your system. -- `ctar`: Compress a whole directory (including subdirectories) to a tar file. -- `etar`: Extract a whole directory (including subdirectories) from a tar file. -- `t7z`: Compress a whole directory (including subdirectories) to a 7z file. -- `tbz`: Compress a whole directory (including subdirectories) to a bzip2 file. -- `tgz`: Compress a whole directory (including subdirectories) to a tar.gz file. -- `txz`: Compress a whole directory (including subdirectories) to a xz file. -- `txzstd`: Compress a whole directory (including subdirectories) to a zstd file. -- `tz`: Compress a whole directory (including subdirectories) to a gzip file. -- `unzip`: Extract a whole directory (including subdirectories) from a zip file. -- `x7z`: Extract a whole directory (including subdirectories) from a 7z file. -- `xbz`: Extract a whole directory (including subdirectories) from a bzip2 file. -- `xgz`: Extract a whole directory (including subdirectories) from a tar.gz file. -- `xxz`: Extract a whole directory (including subdirectories) from a xz file. -- `xxzstd`: Extract a whole directory (including subdirectories) from a zstd file. -- `xz`: Extract a whole directory (including subdirectories) from a gzip file. -- `zip`: Compress a whole directory (including subdirectories) to a zip file. +Enjoy the convenience of quickly compressing and extracting files and +directories with these command aliases! -### xz - -- `cxz`: Compress a file to a xz file. -- `exz`: Extract a file from a xz file. -- `tlz`: Compress a whole directory (including subdirectories) to a lz file. -- `xlz`: Extract a whole directory (including subdirectories) from a lz file. - -### zip - -- `cz`: Compress a whole directory (including subdirectories) to a zip file. -- `ez`: Extract a whole directory (including subdirectories) from a zip file. -- `tbz`: Compress a whole directory (including subdirectories) to a bzip2 file. -- `txz`: Compress a whole directory (including subdirectories) to a xz file. -- `tz`: Compress a whole directory (including subdirectories) to a gzip file. -- `xbz`: Extract a whole directory (including subdirectories) from a bzip2 file. -- `xxz`: Extract a whole directory (including subdirectories) from a xz file. -- `xz`: Extract a whole directory (including subdirectories) from a gzip file. - -### zstd - -- `czstd`: Compress a whole directory (including subdirectories) to a zstd file. -- `ezstd`: Extract a whole directory (including subdirectories) from a zstd file. -- `tzstd`: Compress a whole directory (including subdirectories) to a tar.zst file. -- `xzstd`: Extract a whole directory (including subdirectories) from a tar.zst file. +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/archives/archives.aliases.sh b/lib/aliases/archives/archives.aliases.sh index 355e1914..d2919bb9 100644 --- a/lib/aliases/archives/archives.aliases.sh +++ b/lib/aliases/archives/archives.aliases.sh @@ -1,86 +1,154 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets aliases for archives. # License: MIT # Script: archives.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…°πŸ†πŸ…²πŸ…·πŸ…ΈπŸ†…πŸ…΄πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v '7z' >/dev/null; then - alias c7z='7z a' # c7z: Compress a whole directory (including subdirectories) to a 7z file. - alias e7z='7z x' # e7z: Extract a whole directory (including subdirectories) from a 7z file. - alias l7z='7z l' # l7z: List contents of a 7z archive. - alias t7z='7z t' # t7z: Test integrity of a 7z archive. - alias x7z='7z x' # x7z: Extract files with full paths from a 7z archive. +if command -v 7z &>/dev/null; then + # Compress a whole directory (including subdirectories) to a 7z file. + alias c7z='7z a' + # Extract a whole directory (including subdirectories) from a 7z file. + alias e7z='7z x' +fi + +if command -v tar &>/dev/null; then + # Compress a file to a bzip2 file. + alias cbzip2='tar -cvjf' + # Compress a whole directory (including subdirectories) to a tar file. + alias ctar='tar -cvf' + # Extract a whole directory (including subdirectories) from a tar + # file. + alias etar='tar -xvf' + # Compress a file to a gzip file. + alias cgzip='tar -zcvf' + # Compress a whole directory (including subdirectories) to an xz file. + alias cxz='tar -cvJf' + # Extract a file from a bzip2 file. + alias ebzip2='tar -xvjf' + # Extract a file from a gzip file. + alias egzip='tar -xvzf' + # Extract a whole directory (including subdirectories) from an xz + # file. + alias exz='tar -xvJf' +fi + +if command -v jar &>/dev/null; then + # Compress a whole directory (including subdirectories) to a jar file. + alias cjar='jar -cvf' + # Extract a whole directory (including subdirectories) from a jar + # file. + alias ejar='jar -xvf' +fi + +if command -v xz &>/dev/null; then + # Compress a whole directory (including subdirectories) to an xz file. + alias cxz2='xz -zcvf' + # Extract a whole directory (including subdirectories) from an xz + # file. + alias exz2='xz -zxvf' +fi + +if command -v zip &>/dev/null; then + # Compress a whole directory (including subdirectories) to a zip file. + alias czip='zip -r' + # Extract a whole directory (including subdirectories) from a zip + # file. + alias ezip='unzip' +fi + +if command -v zstd &>/dev/null; then + # Compress a whole directory (including subdirectories) to a zstd file. + alias czstd='zstd -zcvf' + # Extract a whole directory (including subdirectories) from a zstd + # file. + alias ezstd='zstd -zxvf' +fi + +# Compress a file to a lzma file. +if command -v xz &>/dev/null; then + alias clzma='xz -zcvf' + alias elzma='xz -zxvf' +fi + +# Compress a file to a z file. +if command -v gzip &>/dev/null; then + alias czlib='gzip -cv' + alias ezlib='gzip -dv' +fi + +# Compress a file to a bz2 file. +if command -v bzip2 &>/dev/null; then + alias cbz2='bzip2 -zkvf' + alias ebz2='bzip2 -dkvf' +fi + +# Compress a file to a lzo file. +if command -v lzop &>/dev/null; then + alias clzo='lzop -cv' + alias elzo='lzop -dv' fi -if command -v 'bzip2' >/dev/null; then - alias cbz2='tar -cvjf' # cbz2: Compress a file to a bz2 file. - alias ebz2='tar -xvjf' # ebz2: Extract a file from a bz2 file. +# Compress a file to a lz4 file. +if command -v lz4 &>/dev/null; then + alias clz4='lz4 -zcv' + alias elz4='lz4 -dcv' fi -if command -v 'gzip' >/dev/null; then - alias cgz='tar -zcvf' # cgz: Compress a file to a gz file. - alias egz='tar -xvzf' # egz: Extract a file from a gz file. +# Compress a file to a zst file. +if command -v zstd &>/dev/null; then + alias czst='zstd -zcv' + alias ezst='zstd -dcv' fi -if command -v 'jar' >/dev/null; then - alias cjar='jar -cvf' # cjar: Compress a whole directory (including subdirectories) to a jar file. - alias ejar='jar -xvf' # ejar: Extract a whole directory (including subdirectories) from a jar file. +# Compress a file to a pigz file. +if command -v pigz &>/dev/null; then + alias cpgz='pigz -zkvf' + alias epgz='pigz -dkvf' fi -if command -v 'lzma' >/dev/null; then - alias clzma='xz -zcvf' # clzma: Compress a file to a lzma file. - alias elzma='xz -zxvf' # elzma: Extract a file from a lzma file. +# Compress a whole directory (including subdirectories) to a tar.bz2 +# file. +if command -v tar &>/dev/null && command -v bzip2 &>/dev/null; then + alias ctbz2='tar -cvjf' + alias etbz2='tar -xvjf' fi -if command -v 'rar' >/dev/null; then - alias crar='rar a' # crar: Compress a file to a rar file. - alias erar='rar x' # erar: Extract a file from a rar file. +# Compress a whole directory (including subdirectories) to a tar.lzma +# file. +if command -v tar &>/dev/null && command -v xz &>/dev/null; then + alias ctlzma='tar --lzma -cvf' + alias etlzma='tar --lzma -xvf' fi -if command -v 'tar' >/dev/null; then - alias ctar='tar -cvf' # ctar: Compress a whole directory (including subdirectories) to a tar file. - alias etar='tar -xvf' # etar: Extract a whole directory (including subdirectories) from a tar file. - alias t7z='tar -cvf' # t7z: Compress a whole directory (including subdirectories) to a 7z file. - alias tbz='tar -cvjf' # tbz: Compress a whole directory (including subdirectories) to a bzip2 file. - alias tgz='tar -cvzf' # tgz: Compress a whole directory (including subdirectories) to a tar.gz file. - alias txz='tar -cJf' # txz: Compress a whole directory (including subdirectories) to a xz file. - alias txzstd='tar -c --zstd -f' # txzstd: Compress a whole directory (including subdirectories) to a zstd file. - alias tz='tar -cvzf' # tz: Compress a whole directory (including subdirectories) to a gzip file. - alias unzip='tar -xvzf' # unzip: Extract a whole directory (including subdirectories) from a zip file. - alias x7z='tar -xvf' # x7z: Extract a whole directory (including subdirectories) from a 7z file. - alias xbz='tar -xvjf' # xbz: Extract a whole directory (including subdirectories) from a bzip2 file. - alias xgz='tar -xvzf' # xgz: Extract a whole directory (including subdirectories) from a tar.gz file. - alias xxz='tar -xvJf' # xxz: Extract a whole directory (including subdirectories) from a xz file. - alias xxzstd='tar -x --zstd -f' # xxzstd: Extract a whole directory (including subdirectories) from a zstd file. - alias xz='tar -xvzf' # xz: Extract a whole directory (including subdirectories) from a gzip file. - alias zip='tar -cvzf' # zip: Compress a whole directory (including subdirectories) to a zip file. +# Compress a whole directory (including subdirectories) to a tar.gz +# file. +if command -v tar &>/dev/null && command -v gzip &>/dev/null; then + alias ctgz='tar -zcvf' + alias etgz='tar -zxvf' fi -if command -v 'xz' >/dev/null; then - alias cxz='xz -zcvf' # cxz: Compress a whole directory (including subdirectories) to a xz file. - alias exz='xz -zxvf' # exz: Extract a whole directory (including subdirectories) from a xz file. - alias tlz='tar -cJf' # tlz: Compress a whole directory (including subdirectories) to a lz file. - alias xlz='tar -xvf' # xlz: Extract a whole directory (including subdirectories) from a lz file. +# Compress a whole directory (including subdirectories) to a tar.lzo +# file. +if command -v tar &>/dev/null && command -v lzop &>/dev/null; then + alias ctlzo='tar --lzip -cvf' + alias etlzo='tar --lzip -xvf' fi -if command -v 'zip' >/dev/null; then - alias cz='zip -r' # cz: Compress a whole directory (including subdirectories) to a zip file. - alias ez='unzip' # ez: Extract a whole directory (including subdirectories) from a zip file. - alias tbz='tar -cvjf' # tbz: Compress a whole directory (including subdirectories) to a bzip2 file. - alias txz='tar -cJf' # txz: Compress a whole directory (including subdirectories) to a xz file. - alias tz='tar -cvzf' # tz: Compress a whole directory (including subdirectories) to a gzip file. - alias xbz='tar -xvjf' # xbz: Extract a whole directory (including subdirectories) from a bzip2 file. - alias xxz='tar -xvJf' # xxz: Extract a whole directory (including subdirectories) from a xz file. - alias xz='tar -xvzf' # xz: Extract a whole directory (including subdirectories) from a gzip file. +# Compress a whole directory (including subdirectories) to a tar.zst +# file. +if command -v tar &>/dev/null && command -v zstd &>/dev/null; then + alias ctzst='tar --zstd -cvf' + alias etzst='tar --zstd -xvf' fi -if command -v 'zstd' >/dev/null; then - alias czstd='zstd -zcvf' # czstd: Compress a whole directory (including subdirectories) to a zstd file. - alias ezstd='zstd -zxvf' # ezstd: Extract a whole directory (including subdirectories) from a zstd file. - alias tzstd='tar -I zstd -cvf' # tzstd: Compress a whole directory (including subdirectories) to a tar.zst file. - alias xzstd='tar -I zstd -xvf' # xzstd: Extract a whole directory (including subdirectories) from a tar.zst file. +# Compress a whole directory (including subdirectories) to a tar.pgz +# file. +if command -v tar &>/dev/null && command -v pigz &>/dev/null; then + alias ctpgz='tar --use-compress-program=pigz -cvf' + alias etpgz='tar --use-compress-program=pigz -xvf' fi diff --git a/lib/aliases/cd/README.md b/lib/aliases/cd/README.md index 360ec759..78ba94ec 100644 --- a/lib/aliases/cd/README.md +++ b/lib/aliases/cd/README.md @@ -1,16 +1,27 @@ -# CD Aliases + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…²πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ These aliases provide shortcuts for the cd command to help you quickly navigate your file system. To use them, add the following lines to your .bashrc or .bash_profile file. -## Aliases - ### Navigation -- `/`: Go to root directory. - `-`: Go to previous directory. -- `.., ..., ...., .....`: Go up one, two, three, or four directories, respectively. +- `.., ..., ...., .....`: Go up one, two, three, or four directories, + respectively. - `~`: Go to home directory. ### Directories @@ -34,13 +45,19 @@ navigate your file system. To use them, add the following lines to your ### Frequently used directories -- `app`: Shortcut to go to the Applications directory and list its contents. +- `app`: Shortcut to go to the Applications directory and list its + contents. - `cod`: Shortcut to go to the Code directory and list its contents. - `des`: Shortcut to go to the Desktop directory and list its contents. -- `doc`: Shortcut to go to the Documents directory and list its contents. -- `dot`: Shortcut to go to the .dotfiles directory and list its contents. -- `dow`: Shortcut to go to the Downloads directory and list its contents. +- `doc`: Shortcut to go to the Documents directory and list its + contents. +- `dot`: Shortcut to go to the .dotfiles directory and list its + contents. +- `dow`: Shortcut to go to the Downloads directory and list its + contents. - `hom`: Shortcut to go to the home directory and list its contents. - `mus`: Shortcut to go to the Music directory and list its contents. - `pic`: Shortcut to go to the Pictures directory and list its contents. - `vid`: Shortcut to go to the Videos directory and list its contents. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/cd/cd.aliases.sh b/lib/aliases/cd/cd.aliases.sh index 04bef8e6..7003d2dc 100644 --- a/lib/aliases/cd/cd.aliases.sh +++ b/lib/aliases/cd/cd.aliases.sh @@ -4,14 +4,11 @@ # Description: Sets aliases for the `cd` command. # License: MIT # Script: cd.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…²πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -# Shortcut to go to root directory -alias /='cd /' - # Shortcut to go to previous directory alias -- -='cd -' diff --git a/lib/aliases/chmod/README.md b/lib/aliases/chmod/README.md index b8faa514..24be9b1b 100644 --- a/lib/aliases/chmod/README.md +++ b/lib/aliases/chmod/README.md @@ -1,28 +1,61 @@ -# CHMOD Aliases + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…²πŸ…·πŸ…ΌπŸ…ΎπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ These aliases provide shortcuts for the chmod command to help you quickly change the permissions of files and directories. To use them, add the following lines to your .bashrc or .bash_profile file. -## Aliases - ### Change permissions -- `000`: (chmod a-rwx) sets permissions so that, (U)ser / owner can't read, can't write and can't execute. (G)roup can't read, can't write and can't execute. (O)thers can't read, can't write and can't execute. -- `400`: (chmod a-rw) sets permissions so that, (U)ser / owner can't read, can't write and can execute. (G)roup can't read, can't write and can execute. (O)thers can't read, can't write and can execute. -- `444`: (chmod a-r) sets permissions so that, (U)ser / owner can't read, can't write and can execute. (G)roup can't read, can't write and can execute. (O)thers can't read, can't write and can execute. -- `600`: (chmod a+rwx,u-x,g-rwx,o-rwx) sets permissions so that, (U)ser / owner can read, can write and can't execute. (G)roup can't read, can't write and can't execute. (O)thers can't read, can't write and can't execute. -- `644`: (chmod a+rwx,u-x,g-wx,o-wx) sets permissions so that, (U)ser / owner can read, can write and can't execute. (G)roup can read, can't write and can't execute. (O)thers can read, can't write and can't execute. -- `666`: (chmod a+rwx,u-x,g-x,o-x) sets permissions so that, (U)ser / owner can read, can write and can't execute. (G)roup can read, can write and can't execute. (O)thers can read, can write and can't execute. -- `755`: (chmod a+rwx,g-w,o-w) sets permissions so that, (U)ser / owner can read, can write and can execute. (G)roup can read, can't write and can execute. (O)thers can read, can't write and can execute. -- `764`: (chmod a+rwx,g-x,o-wx) sets permissions so that, (U)ser / owner can read, can write and can execute. (G)roup can read, can write and can't execute. (O)thers can read, can't write and can't execute. -- `777`: (chmod a+rwx) sets permissions so that, (U)ser / owner can read, can write and can execute. (G)roup can read, can write and can execute. (O)thers can read, can write and can execute. +- `000`: (chmod a-rwx) sets permissions so that, (U)ser / owner can't + read, can't write and can't execute. (G)roup can't read, can't write + and can't execute. (O)thers can't read, can't write and can't execute. +- `400`: (chmod a-rw) sets permissions so that, (U)ser / owner can't + read, can't write and can execute. (G)roup can't read, can't write and + can execute. (O)thers can't read, can't write and can execute. +- `444`: (chmod a-r) sets permissions so that, (U)ser / owner can't + read, can't write and can execute. (G)roup can't read, can't write and + can execute. (O)thers can't read, can't write and can execute. +- `600`: (chmod a+rwx,u-x,g-rwx,o-rwx) sets permissions so that, (U)ser + / owner can read, can write and can't execute. (G)roup can't read, + can't write and can't execute. (O)thers can't read, can't write and + can't execute. +- `644`: (chmod a+rwx,u-x,g-wx,o-wx) sets permissions so that, (U)ser / + owner can read, can write and can't execute. (G)roup can read, can't + write and can't execute. (O)thers can read, can't write and can't + execute. +- `666`: (chmod a+rwx,u-x,g-x,o-x) sets permissions so that, (U)ser / + owner can read, can write and can't execute. (G)roup can read, can + write and can't execute. (O)thers can read, can write and can't + execute. +- `755`: (chmod a+rwx,g-w,o-w) sets permissions so that, (U)ser / owner + can read, can write and can execute. (G)roup can read, can't write + and can execute. (O)thers can read, can't write and can execute. +- `764`: (chmod a+rwx,g-x,o-wx) sets permissions so that, (U)ser / + owner can read, can write and can execute. (G)roup can read, can write + and can't execute. (O)thers can read, can't write and can't execute. +- `777`: (chmod a+rwx) sets permissions so that, (U)ser / owner can + read, can write and can execute. (G)roup can read, can write and can + execute. (O)thers can read, can write and can execute. ### Change ownership - `chgrp`: Change group ownership of files or directories. - `chgrpr`: Change group ownership of files or directories recursively. -- `chgrpu`: Change group ownership of files or directories recursively to the current user. +- `chgrpu`: Change group ownership of files or directories recursively + to the current user. - `chmod`: Change file mode bits. - `chmodr`: Change file mode bits recursively. - `chmodu`: Change file mode bits recursively to the current user. @@ -68,3 +101,5 @@ add the following lines to your .bashrc or .bash_profile file. - `755`: Set permissions to rwxr-xr-x. - `775`: Set permissions to rwxrwxr-x. - `777`: Set permissions to rwxrwxrwx. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/chmod/chmod.aliases.sh b/lib/aliases/chmod/chmod.aliases.sh index cb9f39cc..85880030 100644 --- a/lib/aliases/chmod/chmod.aliases.sh +++ b/lib/aliases/chmod/chmod.aliases.sh @@ -4,7 +4,7 @@ # Description: Sets aliases for the `chmod` command. # License: MIT # Script: chmod.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…²πŸ…·πŸ…ΌπŸ…ΎπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ diff --git a/lib/aliases/clear/README.md b/lib/aliases/clear/README.md index 5e034b2a..2059f49b 100644 --- a/lib/aliases/clear/README.md +++ b/lib/aliases/clear/README.md @@ -1,38 +1,33 @@ -# CLEAR aliases - -These aliases provide shortcuts for the `clear` command. They are useful -for clearing the terminal screen. The `clear` command is a built-in -command in Bash, so these aliases are available in all Bash shells. To -use them, add the following lines to your `.bashrc` or `.bash_profile` -file. - -## Aliases - -- `c`: Clear the terminal screen. -- `cl`: Clear the terminal screen. -- `cla`: Clear the terminal screen and print an empty line. -- `clc`: Clear the terminal screen and print the contents of the current directory. -- `clcat`: Clear the terminal screen and print the contents of the current directory. -- `cld`: Clear the terminal screen and change to the specified directory. -- `cldi`: Clear the terminal screen and move up one directory level. -- `cle`: Clear the terminal screen and exit the terminal. -- `clg`: Clear the terminal screen and print the current Git status. -- `clh`: Clear the terminal screen and print the command history. -- `clhist`: Clear the terminal screen and print the command history. -- `cli`: Clear the terminal screen and start a new shell as the root user. -- `clj`: Clear the terminal screen and print the current jobs. -- `clk`: Clear the terminal screen and kill all processes matching the specified name. -- `clp`: Clear the terminal screen and print the current working directory. -- `clpwd`: Clear the terminal screen and print the current working directory. -- `clq`: Clear the terminal screen and exit the terminal. -- `clr`: Clear the terminal screen. -- `cls`: Clear the terminal screen. -- `clt`: Clear the terminal screen and print the directory tree. -- `cltree`: Clear the terminal screen and print the directory tree. -- `clu`: Clear the terminal screen, move up one directory level, and print the new working directory. -- `clup`: Clear the terminal screen and move up two directory levels. -- `clv`: Clear the terminal screen and print the current virtualenvwrapper information. -- `ct`: Clear the terminal screen and print the directory tree. -- `ctree`: Clear the terminal screen and print the directory tree. -- `cpl`: Clear the terminal screen and print the current working directory and the contents of the current directory. -- `cplt`: Clear the terminal screen and print the current working directory and the directory tree.- ` + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of command aliases to make working with the +terminal easier and more efficient. The following aliases are included: + +- `c` clears the terminal screen. +- `cdw` changes the current directory to the workspace directory. +- `cl` is an alias for `c`, which clears the terminal screen. +- `clc` clears the terminal screen and lists the contents of the current + directory. +- `clh` clears the terminal screen and prints the command history. +- `clp` clears the terminal screen and prints the current working + directory. +- `clt` clears the terminal screen and prints the directory tree. +- `cpl` clears the terminal screen and prints the current working + directory and the contents of the current directory. +- `cplt` clears the terminal screen and prints the current working + directory and the directory tree. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/clear/clear.aliases.sh b/lib/aliases/clear/clear.aliases.sh index c51e975d..08f40216 100644 --- a/lib/aliases/clear/clear.aliases.sh +++ b/lib/aliases/clear/clear.aliases.sh @@ -1,40 +1,42 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets aliases for the `clear` command. # License: MIT # Script: clear.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v 'clear' >/dev/null; then - alias c="clear" # c: Clear the terminal screen. - alias cl="c" # cl: Clear the terminal screen. - alias cla="clear && echo ''" # cla: Clear the terminal screen and print an empty line. - alias clc="clear && cat" # clc: Clear the terminal screen and print the contents of the current directory. - alias clcat="clc" # clcat: Clear the terminal screen and print the contents of the current directory. - alias cld="clear && cd" # cld: Clear the terminal screen and change to the specified directory. - alias cldi="clear && cd .." # cldi: Clear the terminal screen and move up one directory level. - alias cle="clear && exit" # cle: Clear the terminal screen and exit the terminal. - alias clg="clear && git status" # clg: Clear the terminal screen and print the current Git status. - alias clh="clear && history" # clh: Clear the terminal screen and print the command history. - alias clhist="clh" # clhist: Clear the terminal screen and print the command history. - alias cli="clear && sudo -i" # cli: Clear the terminal screen and start a new shell as the root user. - alias clj="clear && jobs" # clj: Clear the terminal screen and print the current jobs. - alias clk="clear && killall" # clk: Clear the terminal screen and kill all processes matching the specified name. - alias clp="clear && pwd" # clp: Clear the terminal screen and print the current working directory. - alias clpwd="clp" # clpwd: Clear the terminal screen and print the current working directory. - alias clq="clear && exit" # clq: Clear the terminal screen and exit the terminal. - alias clr="c" # clr: Clear the terminal screen. - alias cls="c" # cls: Clear the terminal screen. - alias clt="clear && tree" # clt: Clear the terminal screen and print the directory tree. - alias cltree="clt" # cltree: Clear the terminal screen and print the directory tree. - alias clu="clear && cd .. && pwd" # clu: Clear the terminal screen, move up one directory level, and print the new working directory. - alias clup="clear && cd ../.." # clup: Clear the terminal screen and move up two directory levels. - alias clv="clear && virtualenvwrapper" # clv: Clear the terminal screen and print the current virtualenvwrapper information. - alias ct="clear && tree ./" # ct: Clear the terminal screen and print the directory tree. - alias ctree="ct" # ctree: Clear the terminal screen and print the directory tree. - alias cpl="clear && pwd && echo '' && ls -a && echo ''" # cpl: Clear the terminal screen and print the current working directory and the contents of the current directory. - alias cplt="clear && pwd && echo '' && tree ./ && echo ''" # cplt: Clear the terminal screen and print the current working directory and the directory tree. -fi + +# Alias to change to the workspace directory +alias cdw="cd ~/workspace" + +# Alias to clear the terminal screen +alias c="clear" + +# Alias to clear the terminal screen and list the contents of the +# current directory +alias clc="clear && ls -a" + +# Alias to clear the terminal screen and print the current working +# directory and the contents of the current directory +alias cpl="clear && pwd && echo '' && ls -a && echo ''" + +# Alias to clear the terminal screen and print the current working +# directory and the directory tree +alias cplt="clear && pwd && echo '' && tree ./ && echo ''" + +# Alias to clear the terminal screen and print the command history +alias clh="clear && history" + +# Alias to clear the terminal screen +alias cl="c" + +# Alias to clear the terminal screen and print the current +# working directory +alias clp="pwd" + +# Alias to clear the terminal screen and print the directory tree +alias clt="clear && tree" diff --git a/lib/aliases/configuration/README.md b/lib/aliases/configuration/README.md index d3dc6b82..bb3663dd 100644 --- a/lib/aliases/configuration/README.md +++ b/lib/aliases/configuration/README.md @@ -1,46 +1,35 @@ -# Configuration aliases + -These aliases provide configuration shortcuts. They are useful for -configuring the terminal. To use them, add the following lines to your -`.bashrc` or `.bash_profile` file. + -## Aliases + -### Bash aliases +# Dotfiles (v0.2.465) -- `brc`: Open the Bash configuration file in the default text editor. -- `brhp`: Open the Bash profile file in the default text editor. -- `benv`: Open the Bash environment file in the default text editor. -- `bali`: Open the Bash aliases file in the default text editor. -- `bhist`: Open the Bash history file in the default text editor. -- `binput`: Open the Bash input file in the default text editor. -- `bhlp`: Open the Bash help file in the default text editor. +Simply designed to fit your shell life 🐚 -### Git aliases +![Dotfiles banner][banner] -- `gco`: Open the Git configuration file in the default text editor. -- `gign`: Open the Git ignore file in the default text editor. -- `glog`: Open the Git log file in the default text editor. -- `gmsg`: Open the Git commit message file in the default text editor. +## πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -### Nano aliases +This code provides a set of command aliases to open important +configuration files in default text editors quickly and easily. The +following aliases are included: -- `n`: Open Nano text editor. -- `nano`: Open Nano text editor with automatic line wrapping. -- `nanow`: Open Nano text editor with settings for editing whitespace. +- `apconf` opens the Apache configuration file in the default text + editor. +- `bshrc` opens the Bash configuration file in the default text editor. +- `bshp` opens the Bash profile in the default text editor. +- `dockcomp` opens the Docker Compose file in the default text editor. +- `eddir` opens the current directory in the default text editor. +- `gcfg` opens the Git configuration file in the default text editor. +- `gign` opens the Git ignore file in the default text editor. +- `hosts` opens the hosts file in the default text editor. +- `ngconf` opens the Nginx configuration file in the default text + editor. +- `sshconf` opens the SSH configuration file in the default text editor. +- `zshrc` opens the Zsh configuration file in the default text editor. +- `zshp` opens the Zsh profile in the default text editor. -### Zsh aliases - -- `zrc`: Open the Zsh configuration file in the default text editor. -- `zenv`: Open the Zsh environment file in the default text editor. -- `zali`: Open the Zsh aliases file in the default text editor. -- `zfunc`: Open the Zsh functions file in the default text editor. -- `zhlp`: Open the Zsh help file in the default text editor. - -### Vim aliases - -- `vimrc`: Open the Vim configuration file in the default text editor. -- `vimft`: Open the Vim filetype file in the default text editor. -- `vimftd`: Open the Vim ftdetect directory in the default file manager. -- `vimftpl`: Open the Vim ftplugin directory in the default file manager. -- `vimplt`: Open the Vim plugin directory in the default file manager. +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/configuration/configuration.aliases.sh b/lib/aliases/configuration/configuration.aliases.sh index ea96a8a2..f0c333d2 100644 --- a/lib/aliases/configuration/configuration.aliases.sh +++ b/lib/aliases/configuration/configuration.aliases.sh @@ -1,43 +1,47 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets configuration aliases. # License: MIT # Script: configuration.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -# Bash aliases -alias brc='${=EDITOR} ~/.bashrc' # brc: Open the Bash configuration file in the default text editor. -alias brhp='${=EDITOR} ~/.bash_profile' # brhp: Open the Bash profile file in the default text editor. -alias benv='${=EDITOR} ~/.bash_env' # benv: Open the Bash environment file in the default text editor. -alias bali='${=EDITOR} ~/.bash_aliases' # bali: Open the Bash aliases file in the default text editor. -alias bhist='${=EDITOR} ~/.bash_history' # bhist: Open the Bash history file in the default text editor. -alias binput='${=EDITOR} ~/.inputrc' # binput: Open the Bash input file in the default text editor. -alias bhlp='${=EDITOR} ~/.bash_help' # bhlp: Open the Bash help file in the default text editor. - -# Git aliases -alias gco='${=EDITOR} ~/.gitconfig' # gco: Open the Git configuration file in the default text editor. -alias gign='${=EDITOR} ~/.gitignore' # gign: Open the Git ignore file in the default text editor. -alias glog='${=EDITOR} ~/.git-log' # glog: Open the Git log file in the default text editor. -alias gmsg='${=EDITOR} ~/.gitmessage' # gmsg: Open the Git commit message file in the default text editor. - -# Nano aliases -alias n="nano" # n: Open Nano text editor. -alias nano="nano -w" # nano: Open Nano text editor with automatic line wrapping. -alias nanow="nano -r -c -i -w -T 4" # nanow: Open Nano text editor with settings for editing whitespace. - -# Zsh aliases -alias zrc='${=EDITOR} ~/.zshrc' # zrc: Open the Zsh configuration file in the default text editor. -alias zenv='${=EDITOR} ~/.zshenv' # zenv: Open the Zsh environment file in the default text editor. -alias zali='${=EDITOR} ~/.zsh_aliases' # zali: Open the Zsh aliases file in the default text editor. -alias zfunc='${=EDITOR} ~/.zsh_functions' # zfunc: Open the Zsh functions file in the default text editor. -alias zhlp='${=EDITOR} ~/.zsh_help' # zhlp: Open the Zsh help file in the default text editor. - -# Vim aliases -alias vimrc='${=EDITOR} ~/.vimrc' # vimrc: Open the Vim configuration file in the default text editor. -alias vimft='${=EDITOR} ~/.vim/filetype.vim' # vimft: Open the Vim filetype file in the default text editor. -alias vimftd='${=EDITOR} ~/.vim/ftdetect/' # vimftd: Open the Vim ftdetect directory in the default file manager. -alias vimftpl='${=EDITOR} ~/.vim/ftplugin/' # vimftpl: Open the Vim ftplugin directory in the default file manager. -alias vimplt='${=EDITOR} ~/.vim/plugin/' # vimplt: Open the Vim plugin directory in the default file manager. + +# Alias to open the Apache configuration file in the default text editor +alias apconf='${=EDITOR} /etc/apache2/apache2.conf' + +# Alias to open the Bash configuration file in the default text editor +alias bshrc='${=EDITOR} $HOME/.bashrc' + +# Alias to open the Bash profile in the default text editor +alias bshp='${=EDITOR} $HOME/.bash_profile' + +# Alias to open the Docker Compose file in the default text editor +alias dockcomp='${=EDITOR} docker-compose.yml' + +# Alias to open the current directory in the default text editor +alias eddir='${=EDITOR} .' + +# Alias to open the Git configuration file in the default text editor +alias gcfg='${=EDITOR} $HOME/.gitconfig' + +# Alias to open the Git ignore file in the default text editor +alias gign='${=EDITOR} $HOME/.gitignore' + +# Alias to open the hosts file in the default text editor +alias hosts='${=EDITOR} /etc/hosts' + +# Alias to open the Nginx configuration file in the default text editor +alias ngconf='${=EDITOR} /etc/nginx/nginx.conf' + +# Alias to open the SSH configuration file in the default text editor +alias sshconf='${=EDITOR} $HOME/.ssh/config' + +# Alias to open the Zsh configuration file in the default text editor +alias zshrc='${=EDITOR} $HOME/.zshrc' + +# Alias to open the Zsh profile in the default text editor +alias zshp='${=EDITOR} $HOME/.zsh_profile' diff --git a/lib/aliases/default/README.md b/lib/aliases/default/README.md index 4537b04f..4789e755 100644 --- a/lib/aliases/default/README.md +++ b/lib/aliases/default/README.md @@ -1,62 +1,36 @@ -# Default aliases + -These aliases provide default aliases. They are useful for configuring -the terminal. To use them, add the following lines to your `.bashrc` or -`.bash_profile` file. + -## Aliases + -### Directory aliases +# Dotfiles (v0.2.465) -- `ctf`: Count the number of files in the current directory. -- `p`: Print working directory. +Simply designed to fit your shell life 🐚 -### Exit aliases +![Dotfiles banner][banner] -- `bye`: Exit the shell. -- `q`: Exit the shell. -- `quit`: Exit the shell. +## πŸ…³πŸ…΄πŸ…΅πŸ…°πŸ†„πŸ…»πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -### Misc aliases +This code provides a set of command aliases to make common tasks and +commands more convenient and faster to execute. These aliases range from +general purpose to system monitoring and file system navigation. -- `h`: Display command history. -- `ipinfo`: Get network interface parameters for en0. -- `path`: Display the $PATH variable on newlines. -- `please`: Run command as superuser. -- `spd`: Remove all log files in /private/var/log/asl/. -- `srv`: Start a simple HTTP server. -- `t`: Print last 10 lines of a file in real time. -- `x`: Exit the shell. +Some of the most useful aliases include: -### Package manager aliases +- `c`: shortcut for the `clear` command to clear the terminal screen. +- `p`: shortcut for the `pwd` command to display the current working + directory. +- `h`: lists all recently used commands. +- `path`: displays the `$PATH` variable on new lines. +- `quit`: shortcut for the `exit` command to exit the shell. +- `halt`, `poweroff`, `reboot`: system shutdown and reboot commands. +- `srv`: starts a simple HTTP server. +- `top`: allows the user to interactively monitor the system's vital + resources or server's processes in real-time. +- `qfind`: quickly search for files. +- `clc`: clear the terminal screen and print the contents of the current + directory. -- `apt-get`: Append sudo to apt-get command. -- `aptitude`: Run command as superuser. -- `pacman`: Run command as superuser. -- `yum`: Run command as superuser. - -### System aliases - -- `da`: Display the current date and time. -- `moon`: Get the moon phase. -- `nls`: Show only active network listeners. -- `now`: Show the current time. -- `op`: List of open ports. -- `ping`: Limit Ping to 5 ECHO_REQUEST packets. -- `ports`: List all listening ports. -- `top`: Display the top processes. -- `tree`: Display the directory tree. -- `wth`: Get the weather. -- `wk`: Display the current week number. - -### System control aliases - -- `halt`: Halt the system. -- `poweroff`: Power off the system. -- `reboot`: Reboot the system. -- `shutdown`: Shut down the system. - -### Terminal control aliases - -- `reload`: Reload the shell. -- `r`: Reload the shell. +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/default/default.aliases.sh b/lib/aliases/default/default.aliases.sh index 66684d42..e12d6bbf 100644 --- a/lib/aliases/default/default.aliases.sh +++ b/lib/aliases/default/default.aliases.sh @@ -1,65 +1,126 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets Default Aliases # License: MIT # Script: default.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…³πŸ…΄πŸ…΅πŸ…°πŸ†„πŸ…»πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -## Directory aliases +## General aliases + +# Shortcut for the `clear` command. +alias c="clear" + +# Display the current date and time. +alias da='date "+%Y-%m-%d %A %T %Z"' + +# Lists all recently used commands. +alias h='history' + +# Shortcut for `pwd` which returns working directory name. +alias p='pwd' + +# Display the $PATH variable on newlines. +alias path='echo ${PATH//:/\\n}' + +# Reload the shell. +alias r='reload' + +# Prints the last 10 lines of a text or log file, and then waits for new +# additions to the file to print it in real time. +alias t='tail -f' + +# wk: Show the current week number. +alias wk='date +%V' + +## Exit/shutdown aliases + +# Shortcut for the `exit` command. +alias ':q'='quit' + +# Shortcut for the `exit` command. +alias bye='quit' + +# Shortcut for the `exit` command. +alias q='quit' + +# Shortcut for the `exit` command. +alias x='quit' + +# Shortcut for the `exit` command. +alias quit='exit' + +# Shutdown the system. +alias halt='sudo /sbin/halt' + +# Poweroff the system. +alias poweroff='sudo /sbin/shutdown' + +# Reboot the system. +alias reboot='sudo /sbin/reboot' + +## Network aliases + +# Append sudo to ifconfig (configure network interface parameters) +# command. +alias ifconfig='sudo ifconfig' + +# Get network interface parameters for en0. +alias ipinfo='ipconfig getpacket en0' + +# Show only active network listeners. +alias nls='sudo lsof -i -P | grep LISTEN' + +# List of open ports. +alias op='sudo lsof -i -P' + +# Limit Ping to 5 ECHO_REQUEST packets. +alias ping='ping -c 5' + +# List all listening ports. +alias ports='netstat -tulan' + +# Start a simple HTTP server. +alias srv='python3 -m http.server' -alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory. -alias p='pwd' # p: Print working directory. +## System monitoring aliases -## Exit aliases +# Get the moon phase. +alias moon='curl -s "wttr.in/?format=%m"' -alias bye='quit' # bye: Exit the shell. -alias q='quit' # q: Exit the shell. -alias quit='exit' # quit: Exit the shell. +# Allows the user to interactively monitor the system's vital resources +# or server's processes in real time. +alias top='sudo btop' -## Misc aliases +# Remove all log files in /private/var/log/asl/. +alias spd='sudo rm -rf /private/var/log/asl/*' -alias h='history' # h: Display command history. -alias ipinfo='ipconfig getpacket en0' # ipinfo: Get network interface parameters for en0. -alias path='echo ${PATH//:/\n}' # path: Display the $PATH variable on newlines. -alias please='sudo -s' # please: Run command as superuser. -alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl/. -alias srv='python3 -m http.server' # srv: Start a simple HTTP server. -alias t='tail -f' # t: Print last 10 lines of a file in real time. -alias x='quit' # x: Exit the shell. +## Utility aliases -## Package manager aliases +# Count the number of files in the current directory. +alias ctf='echo $(ls -1 | wc -l)' -alias apt-get='sudo apt-get' # apt-get: Append sudo to apt-get command. -alias aptitude='sudo aptitude' # aptitude: Run command as superuser. -alias pacman='sudo pacman' # pacman: Run command as superuser. -alias yum='sudo yum' # yum: Run command as superuser. +# Use compression when transferring data. +alias curl='curl --compressed' -## System aliases +# Quickly search for file. +alias qfind='find . -name ' -alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time. -alias moon='curl -s "wttr.in/?format=%m"' # moon: Get the moon phase. -alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners. -alias now='date +"%T"' # now: Show the current time. -alias op='sudo lsof -i -P' # op: List of open ports. -alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets. -alias ports='sudo lsof -i -P' # ports: List all listening ports. -alias top='sudo htop' # top: Display the top processes. -alias tree='tree --dirsfirst' # tree: Display the directory tree. -alias wth='curl -s "wttr.in/?format=3"' # wth: Get the weather. -alias wk='date +%V' # wk: Display the current week number. +# Reload the shell. +alias reload='exec $SHELL -l' -## System control aliases +# Get the weather. +alias wth='curl -s "wttr.in/?format=3"' -alias halt='sudo shutdown -h now' # halt: Halt the system. -alias poweroff="sudo /sbin/shutdown" # poweroff: Power off the system. -alias reboot='sudo shutdown -r now' # reboot: Reboot the system. -alias shutdown='sudo shutdown -h now' # shutdown: Shut down the system. +# File system navigation aliases -## Terminal control aliases +# Clear the terminal screen and print the contents of the current +# directory. +alias clc='clear && ls -a' -alias reload='exec $SHELL -l' # reload: Reload the shell. -alias r='reload' # r: Reload the shell. +# Clear the terminal screen and print +alias clp='pwd' diff --git a/lib/aliases/dig/README.md b/lib/aliases/dig/README.md index e9c96004..bdc98014 100644 --- a/lib/aliases/dig/README.md +++ b/lib/aliases/dig/README.md @@ -1,50 +1,33 @@ -# Dig Aliases + -These aliases provide shortcuts for the `dig` command to help you -quickly query DNS records. To use them, add the following lines to your -`.bashrc` or `.bash_profile` file. + -## Aliases + -### DNS lookups with dig command +# Dotfiles (v0.2.465) -- `d`: Run the dig command with the default options. -- `d4`: Perform a DNS lookup for an IPv4 address. -- `d6`: Perform a DNS lookup for an IPv6 address. -- `dga`: Perform a DNS lookup for all records. -- `dgs`: Perform a DNS lookup for a short answer. +Simply designed to fit your shell life 🐚 -### DNS lookups with specific options +![Dotfiles banner][banner] -- `digg`: Dig with Google's DNS. +## πŸ…³πŸ…ΈπŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -### IP address lookups +This code provides a set of command aliases to simplify working with DNS +(Domain Name System) lookup using the dig command on a Unix-based system +. -- `ip4`: Get your public IPv4 address. -- `ip6`: Get your public IPv6 address. -- `ips`: Get your public IPv4 and IPv6 addresses. -- `wip`: Get your public IP address. +The following aliases are included: -### DNS lookups for MX records +- `d`: runs the dig command with default options. +- `d4`: performs a DNS lookup for an IPv4 address. +- `d6`: performs a DNS lookup for an IPv6 address. +- `dga`: performs a DNS lookup for all records. +- `dgs`: performs a DNS lookup for a short answer. +- `digg`: performs a dig with Google's DNS. +- `ip4`: retrieves your public IPv4 address. +- `ip6`: retrieves your public IPv6 address. +- `ips`: retrieves your public IPv4 and IPv6 addresses. +- `wip`: retrieves your public IP address. -- `dmx`: Perform a DNS lookup for MX records. - -### DNS lookups for NS records - -- `dns`: Perform a DNS lookup for NS records. - -### DNS lookups for CNAME records - -- `dc`: Perform a DNS lookup for CNAME records. - -### DNS lookups for SOA records - -- `dsoa`: Perform a DNS lookup for SOA records. - -### DNS lookups for TXT records - -- `dt`: Perform a DNS lookup for TXT records. - -### DNS lookups for PTR records - -- `dptr`: Perform a DNS lookup for PTR records. +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/dig/dig.aliases.sh b/lib/aliases/dig/dig.aliases.sh index b56c78b5..fdcbc290 100644 --- a/lib/aliases/dig/dig.aliases.sh +++ b/lib/aliases/dig/dig.aliases.sh @@ -1,46 +1,43 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets aliases for the `dig` command. # License: MIT # Script: dig.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…³πŸ…ΈπŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v 'dig' >/dev/null; then - # DNS lookups with dig command - alias d='$(which dig)' # d: Run the dig command with the default options. - alias d4='$(which dig) +short -4' # d4: Perform a DNS lookup for an IPv4 address. - alias d6='$(which dig) +short -6' # d6: Perform a DNS lookup for an IPv6 address. - alias dga='$(which dig) +all ANY' # dga: Perform a DNS lookup for all records. - alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer. +if command -v dig &>/dev/null; then + # d: Run the dig command with the default options. + alias d='$(which dig)' + + # d4: Perform a DNS lookup for an IPv4 address. + alias d4='$(which dig) +short -4' - # DNS lookups with specific options - alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' # digg: Dig with Google's DNS. + # d6: Perform a DNS lookup for an IPv6 address. + alias d6='$(which dig) +short -6' - # IP address lookups - alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Get your public IPv4 address. - alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address. - alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses. - alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get your public IP address. + # dga: Perform a DNS lookup for all records. + alias dga='$(which dig) +all ANY' - # DNS lookups for MX records - alias dmx='$(which dig) +short -t MX' # dmx: Perform a DNS lookup for MX records. + # dgs: Perform a DNS lookup for a short answer. + alias dgs='$(which dig) +short' - # DNS lookups for NS records - alias dns='$(which dig) +short -t NS' # dns: Perform a DNS lookup for NS records. + # digg: Dig with Google's DNS. + alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' - # DNS lookups for CNAME records - alias dc='$(which dig) +short -t CNAME' # dc: Perform a DNS lookup for CNAME records. + # ip4: Get your public IPv4 address. + alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' - # DNS lookups for SOA records - alias dsoa='$(which dig) +short -t SOA' # dsoa: Perform a DNS lookup for SOA records. + # ip6: Get your public IPv6 address. + alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' - # DNS lookups for TXT records - alias dt='$(which dig) +short -t TXT' # dt: Perform a DNS lookup for TXT records. + # ips: Get your public IPv4 and IPv6 addresses. + alias ips='ip4; ip6' - # DNS lookups for PTR records - alias dptr='$(which dig) +short -x' # dptr: Perform a DNS lookup for PTR records. + # wip: Get your public IP address. + alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' fi diff --git a/lib/aliases/disk-usage/README.md b/lib/aliases/disk-usage/README.md new file mode 100644 index 00000000..5e51bf30 --- /dev/null +++ b/lib/aliases/disk-usage/README.md @@ -0,0 +1,32 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…³πŸ…ΈπŸ†‚πŸ…Ί πŸ†„πŸ†‚πŸ…°πŸ…ΆπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of command aliases to help users manage disk +usage on a Unix-based system. + +The following aliases are provided: + +- `du`: Display the disk usage of the current directory. +- `du1`: Show the file size of files and directories in the current + directory. +- `duh`: Show the file size of files and directories. +- `ducks`: Display the top 10 largest files and directories in the + current directory. +- `dus`: Show the file size in human-readable format, sorted by size. +- `dusym`: Show the file size of files and directories in the current + directory, including symlinks. +- `dut`: Show the total file size of the current directory. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/disk-usage/du.aliases.sh b/lib/aliases/disk-usage/du.aliases.sh new file mode 100644 index 00000000..e0e2b5b3 --- /dev/null +++ b/lib/aliases/disk-usage/du.aliases.sh @@ -0,0 +1,84 @@ +#!/usr/bin/env bash + +# Author: Sebastien Rousseau +# Copyright (c) 2015-2023. All rights reserved +# Description: Sets Disk Usage Aliases +# License: MIT +# Script: du.aliases.sh +# Version: 0.2.465 +# Website: https://dotfiles.io + +# πŸ…³πŸ…ΈπŸ†‚πŸ…Ί πŸ†„πŸ†‚πŸ…°πŸ…ΆπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +if command -v 'du' >/dev/null; then + + # Display the disk usage of the current directory. + alias du="du -h" + + # File size of files and directories in current directory. + alias du1='du -hxd 1 | sort -h' + + # Top 10 largest files and directories in current directory. + alias ducks="du -cks * .* | sort -rn | head -n 10" + + # File size of files and directories. + alias duh='du' + + # File size human readable output sorted by size. + alias dus='du -hs *' + + # File size of files and directories in current directory including + # symlinks. + alias dusym="du * -hsLc" + + # Total file size of current directory. + alias dut='dus' + + # DNS aliases + + # Run the dig command with the default options. + alias d='$(which dig)' + + # Perform a DNS lookup for CNAME records. + alias dc='$(which dig) +short -t CNAME' + + # Perform a DNS lookup for all records. + alias dga='$(which dig) +all ANY' + + # Dig with Google's DNS. + alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' + + # Perform a DNS lookup for a short answer. + alias dgs='$(which dig) +short' + + # Perform a DNS lookup for NS records. + alias dns='$(which dig) +short -t NS' + + # Perform a DNS lookup for MX records. + alias dmx='$(which dig) +short -t MX' + + # Perform a DNS lookup for PTR records. + alias dptr='$(which dig) +short -x' + + # Perform a DNS lookup for TXT records. + alias dt='$(which dig) +short -t TXT' + + # Perform a DNS lookup for an IPv4 address. + alias d4='$(which dig) +short -4' + + # Perform a DNS lookup for an IPv6 address. + alias d6='$(which dig) +short -6' + + # Get your public IPv4 address. + alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' + + # Get your public IPv6 address. + alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' + + # Get your public IPv4 and IPv6 addresses. + alias ips='ip4; ip6' + + # Get your public IP address. + alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' + +fi diff --git a/lib/aliases/du/README.md b/lib/aliases/du/README.md deleted file mode 100644 index 53a3aed3..00000000 --- a/lib/aliases/du/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# Du Aliases - -These aliases provide shortcuts for the `du` command to help you -quickly query disk usage. To use them, add the following lines to your -`.bashrc` or `.bash_profile` file. - -## Aliases - -### Disk usage aliases - -- `du`: Display the disk usage of the current directory. -- `du1`: File size of files and directories in current directory. -- `ducks`: Top 10 largest files and directories in current directory. -- `duh`: File size of files and directories. -- `dus`: File size human readable output sorted by size. -- `dusym`: File size of files and directories in current directory including symlinks. -- `dut`: Total file size of current directory. - -### DNS aliases - -- `d`: Run the dig command with the default options. -- `dc`: Perform a DNS lookup for CNAME records. -- `dga`: Perform a DNS lookup for all records. -- `digg`: Dig with Google's DNS. -- `dgs`: Perform a DNS lookup for a short answer. -- `dns`: Perform a DNS lookup for NS records. -- `dmx`: Perform a DNS lookup for MX records. -- `dptr`: Perform a DNS lookup for PTR records. -- `dt`: Perform a DNS lookup for TXT records. -- `d4`: Perform a DNS lookup for an IPv4 address. -- `d6`: Perform a DNS lookup for an IPv6 address. -- `ip4`: Get your public IPv4 address. -- `ip6`: Get your public IPv6 address. -- `ips`: Get your public IPv4 and IPv6 addresses. -- `wip`: Get your public IP address. diff --git a/lib/aliases/du/du.aliases.sh b/lib/aliases/du/du.aliases.sh deleted file mode 100644 index 6428c4cd..00000000 --- a/lib/aliases/du/du.aliases.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash -# Author: Sebastien Rousseau -# Copyright (c) 2015-2023. All rights reserved -# Description: Sets Disk Usage Aliases -# License: MIT -# Script: du.aliases.sh -# Version: 0.2.464 -# Website: https://dotfiles.io - -# πŸ…³πŸ…ΈπŸ†‚πŸ…Ί πŸ†„πŸ†‚πŸ…°πŸ…ΆπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v 'du' >/dev/null; then - # Disk usage aliases - alias du="du -h" # du: Display the disk usage of the current directory. - alias du1='du -hxd 1 | sort -h' # du1: File size of files and directories in current directory. - alias ducks="du -cks * .* | sort -rn | head -n 10" # ducks: Top 10 largest files and directories in current directory. - alias duh='du' # duh: File size of files and directories. - alias dus='du -hs *' # dus: File size human readable output sorted by size. - alias dusym="du * -hsLc" # dusym: File size of files and directories in current directory including symlinks. - alias dut='dus' # dut: Total file size of current directory. - - # DNS aliases - alias d='$(which dig)' # d: Run the dig command with the default options. - alias dc='$(which dig) +short -t CNAME' # dc: Perform a DNS lookup for CNAME records. - alias dga='$(which dig) +all ANY' # dga: Perform a DNS lookup for all records. - alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' # digg: Dig with Google's DNS. - alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer. - alias dns='$(which dig) +short -t NS' # dns: Perform a DNS lookup for NS records. - alias dmx='$(which dig) +short -t MX' # dmx: Perform a DNS lookup for MX records. - alias dptr='$(which dig) +short -x' # dptr: Perform a DNS lookup for PTR records. - alias dt='$(which dig) +short -t TXT' # dt: Perform a DNS lookup for TXT records. - alias d4='$(which dig) +short -4' # d4: Perform a DNS lookup for an IPv4 address. - alias d6='$(which dig) +short -6' # d6: Perform a DNS lookup for an IPv6 address. - alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Get your public IPv4 address. - alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address. - alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses. - alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get your public IP address. -fi diff --git a/lib/aliases/editor/README.md b/lib/aliases/editor/README.md index e6793870..b54ded49 100644 --- a/lib/aliases/editor/README.md +++ b/lib/aliases/editor/README.md @@ -1,47 +1,49 @@ -# Editor Aliases + -These aliases provide shortcuts for common editor commands. To use them, -add the following lines to your `.bashrc` or `.bash_profile` file. + -## Aliases + -### Nano Aliases +# Dotfiles (v0.2.465) -- `n`: Edit a file with Nano. -- `nano1`: Edit a file with Nano, with cursor position display. -- `nanos`: Edit a file with Nano, soft wrapping enabled. +Simply designed to fit your shell life 🐚 -### Vim or Vi Aliases +![Dotfiles banner][banner] -- `v`: Edit a file with Vim. -- `vi`: Edit a file with Vim. -- `vimdiff`: Compare two files with Vimdiff. -- `vimh`: Edit a file with Vim in no compatible mode. -- `vims`: Edit a file with Vim, sourcing the given session file. +## πŸ…΄πŸ…³πŸ…ΈπŸ†ƒπŸ…ΎπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -### Visual Studio Code Aliases +This code provides command aliases for editing files on a Unix-based +system using various text editors. -- `c`: Edit a file with Visual Studio Code. -- `code1`: Edit a file with Visual Studio Code, with extensions disabled. -- `codef`: Open a new instance of Visual Studio Code. -- `cdiff`: Compare two files with Visual Studio Code. +The following editors are supported: -### Gedit Aliases +- nano (GNU nano) +- vim (Vim) +- vi (Vi) +- code (Visual Studio Code) +- gedit (gedit) +- notepad++ (Notepad++) -- `g`: Edit a file with Gedit. -- `gedit1`: Edit a file with Gedit and wait until it is closed. -- `geditd`: Edit a file with Gedit, with split view enabled. +The aliases are designed to make it easy for users to quickly open and +edit files with their preferred text editor. The aliases are: -### Notepad++ Aliases +- `e`: Edit a file +- `edit`: Edit a file +- `editor`: Edit a file +- `mate`: Edit a file +- `n`: Edit a file +- `v`: Edit a file -- `npp`: Edit a file with Notepad++. -- `npp1`: Edit a file with Notepad++, without restoring a previous session. +The code checks if any of the supported editors are installed on the +system and sets the corresponding alias to open the file in the +available editor. -### Generic Editor Aliases +This makes it easy for users to switch between editors or use their +preferred editor without having to remember the specific command for +each editor. -- `e`: Edit a file. -- `edit`: Edit a file. -- `editor`: Edit a file. -- `mate`: Edit a file. -- `n`: Edit a file. -- `v`: Edit a file. +Enjoy the convenience of quickly editing files with these command +aliases! + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/editor/editor.aliases.sh b/lib/aliases/editor/editor.aliases.sh index 2bd3eec1..08c4bf43 100644 --- a/lib/aliases/editor/editor.aliases.sh +++ b/lib/aliases/editor/editor.aliases.sh @@ -1,52 +1,26 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets Editor Aliases # License: MIT # Script: editor.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…΄πŸ…³πŸ…ΈπŸ†ƒπŸ…ΎπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + editors="nano vim vi code gedi notepad++" for editor in ${editors}; do if command -v "${editor}" &>/dev/null; then - case "${editor}" in - "nano") - alias n='nano' # n: Edit a file with Nano. - alias nano1='nano -c' # nano1: Edit a file with Nano, with cursor position display. - alias nanos='nano -S' # nanos: Edit a file with Nano, soft wrapping enabled. - ;; - "vim" | "vi") - alias v='vim' # v: Edit a file with Vim. - alias vi='vim' # vi: Edit a file with Vim. - alias vimdiff='vim -d' # vimdiff: Compare two files with Vimdiff. - alias vimh='vim -u NONE -N' # vimh: Edit a file with Vim in no compatible mode. - alias vims='vim -S' # vims: Edit a file with Vim, sourcing the given session file. - ;; - "code") - alias c='code' # c: Edit a file with Visual Studio Code. - alias code1='code --disable-extensions' # code1: Edit a file with Visual Studio Code, with extensions disabled. - alias codef='code --new-window' # codef: Open a new instance of Visual Studio Code. - alias cdiff='code --diff' # cdiff: Compare two files with Visual Studio Code. - ;; - "gedi") - alias g='gedit' # g: Edit a file with Gedit. - alias gedit1='gedit -w' # gedit1: Edit a file with Gedit and wait until it is closed. - alias geditd='gedit -s' # geditd: Edit a file with Gedit, with split view enabled. - ;; - "notepad++") - alias npp='notepad++' # npp: Edit a file with Notepad++. - alias npp1='notepad++ -nosession' # npp1: Edit a file with Notepad++, without restoring a previous session. - ;; - *) ;; - esac - alias e='${editor}' # e: Edit a file. - alias edit='${editor}' # edit: Edit a file. - alias editor='${editor}' # editor: Edit a file. - alias mate='${editor}' # mate: Edit a file. - alias n='${editor}' # n: Edit a file. - alias v='${editor}' # v: Edit a file. + # Edit aliases + alias e='${editor}' + alias edit='${editor}' + alias editor='${editor}' + alias mate='${editor}' + alias n='${editor}' + alias v='${editor}' + break fi done diff --git a/lib/aliases/find/README.md b/lib/aliases/find/README.md index c89e1124..9b14b36c 100644 --- a/lib/aliases/find/README.md +++ b/lib/aliases/find/README.md @@ -1,29 +1,42 @@ -# Find Aliases - -These aliases provide shortcuts for common find commands. To use them, -add the following lines to your `.bashrc` or `.bash_profile` file. - -## Aliases - -- `fd`: always colorize output by default. -- `fda`: list all files with absolute path. -- `fdb`: list all files with a base directory. -- `fdc`: list all files with case insensitive search. -- `fdd`: list all files with details. -- `fdD`: search up to a maximum depth. -- `fde`: list all files with extension. -- `fdf`: list all files with follow symlinks. -- `fdh`: list all files with hidden files. -- `fdl`: list all files following symlinks. -- `fdn`: list all files with glob. -- `fdo`: list all files with owner. -- `fdp`: list all files with the full path. -- `fdr`: list only directories. -- `fds`: list all files with size. -- `fdsy`: list only symlinks. -- `fdt`: list all files of a specific type. -- `fdu`: list all files with exclude. -- `fdv`: list all files with version. -- `fdx`: Execute a command for each search result. -- `fdz`: list all files with size of 0 bytes. -- `find`: fd is a simple, fast and user-friendly alternative to find. + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…΅πŸ…ΈπŸ…½πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of command aliases for the `fd` utility that is +an alternative to the `find` command on Unix-based systems. + +`fd` is a simple, fast, and user-friendly tool that can be used to +search for files and directories in a given path. These aliases make it +easier to use `fd` by providing simple and memorable commands for common +use cases. + +Here are some of the available aliases: + +- `fd` is the default alias for `fd --color always` that lists all files + with colorized output. +- `fda` lists all files with absolute paths. +- `fdc` lists all files with case-insensitive search. +- `fdd` lists all files with details. +- `fde` lists all files with a specified extension. +- `fdf` lists all files while following symbolic links. +- `fdh` shows help for `fd`. +- `fdh` lists all files, including hidden files. +- `fdn` lists all files that match a specified glob. +- `fdo` lists all files with owner information. +- `fds` lists all files with size. +- `fdu` lists all files with exclusion rules. +- `fdv` shows the version of `fd`. +- `fdx` executes a command for each search result. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/find/find.aliases.sh b/lib/aliases/find/find.aliases.sh index 388c5896..c5a4b046 100644 --- a/lib/aliases/find/find.aliases.sh +++ b/lib/aliases/find/find.aliases.sh @@ -1,34 +1,60 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets Find Aliases # License: MIT # Script: find.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # πŸ…΅πŸ…ΈπŸ…½πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v 'fd' >/dev/null; then - alias fd='fd --color always' # fd: always colorize output by default. - alias fda='fd --absolute-path' # fda: list all files with absolute path. - alias fdb='fd --base-directory' # fdb: list all files with a base directory. - alias fdc='fd --ignore-case' # fdc: list all files with case insensitive search. - alias fdd='fd --list-details' # fdd: list all files with details. - alias fdD='fd --max-depth' # fdD: search up to a maximum depth. - alias fde='fd --extension' # fde: list all files with extension. - alias fdf='fd --follow' # fdf: list all files with follow symlinks. - alias fdh='fd --hidden' # fdh: list all files with hidden files. - alias fdl='fd --follow --type file' # fdl: list all files following symlinks. - alias fdn='fd --glob' # fdn: list all files with glob. - alias fdo='fd --owner' # fdo: list all files with owner. - alias fdp='fd --full-path' # fdp: list all files with the full path. - alias fdr='fd --type directory' # fdr: list only directories. - alias fds='fd --size' # fds: list all files with size. - alias fdsy='fd --type symlink' # fdsy: list only symlinks. - alias fdt='fd --type' # fdt: list all files of a specific type. - alias fdu='fd --exclude' # fdu: list all files with exclude. - alias fdv='fd --version' # fdv: list all files with version. - alias fdx='fd --exec' # fdx: Execute a command for each search result. - alias fdz='fd --size -0' # fdz: list all files with size of 0 bytes. - alias find='fd' # find: fd is a simple, fast and user-friendly alternative to find. + +if command -v fd &>/dev/null; then + # fd: a simple, fast and user-friendly alternative to find + # Always colorize output by default. + alias fd='fd --color always' + + # List all files with absolute path. + alias fda='fd --absolute-path' + + # List all files with case-insensitive search. + alias fdc='fd --ignore-case' + + # List all files with details. + alias fdd='fd --list-details' + + # List all files with extension. + alias fde='fd --extension' + + # List all files with follow symlinks. + alias fdf='fd --follow' + + # List all files with help. + alias fdh='fd --help' + + # List all files, including hidden files. + alias fdh='fd --hidden' + + # List all files with glob. + alias fdn='fd --glob' + + # List all files with owner. + alias fdo='fd --owner' + + # List all files with size. + alias fds='fd --size' + + # List all files with exclude. + alias fdu='fd --exclude' + + # List all files with version. + alias fdv='fd --version' + + # Execute a command for each search result. + alias fdx='fd --exec' + + # Use fd as a replacement for find. + alias find='fd' + fi diff --git a/lib/aliases/gcloud/README.md b/lib/aliases/gcloud/README.md index a2c90343..35035c52 100644 --- a/lib/aliases/gcloud/README.md +++ b/lib/aliases/gcloud/README.md @@ -1,148 +1,59 @@ -# Google Cloud Aliases - -These aliases provide shortcuts for common Google Cloud commands. To use them, add the following lines to your `.bashrc` or `.bash_profile` file. - -## Aliases - -### Authenticate and authorize - -- `gcaasa`: Like gcloud auth login but with service account credentials. -- `gcacd`: Configure Docker to use gcloud as a credential helper. -- `gcal`: List the accounts you are logged in with. -- `gcapat`: Print the access token for the current active account. -- `gcar`: Revoke credentials for the current active account. - -### App Engine - -- `gcapb`: Open the App Engine app in your default browser. -- `gcapc`: Create a new App Engine app. -- `gcapd`: Deploy an App Engine app. -- `gcapl`: Read the logs for an App Engine app. -- `gcapv`: List the versions of an App Engine app. - -### Cloud SDK configuration and management - -- `gccca`: Switch to an existing named configuration. -- `gcccc`: Create a new named configuration. -- `gcccl`: Display a list of all available configurations. -- `gccl`:Display all the properties for the current configuration. -- `gccgv`: Fetch value of a Cloud SDK property. -- `gccs`: Define a property (like compute/zone) for the current configuration. -- `gccsp`: Set a default Google Cloud project to work on. -- `gccu`: Update your Cloud SDK to the latest version. -- `gci`: Initialize, authorize, and configure the gcloud tool. -- `gcinf`: Display current gcloud tool environment details. -- `gciov`: Verify your email address for Google Cloud. - -### Container - -- `gcccc`: Create a cluster to run GKE containers. -- `gcccg`: Update kubeconfig to get kubectl to use a GKE cluster. -- `gcccl`: List clusters for running GKE containers. -- `gccil`: List tag and digest metadata for a container image. -- `gcd`: A convenience command group for all container-related commands. - -### IAM - -- `gciamk`: List a service account's keys. -- `gciaml`: List IAM grantable roles for a resource. -- `gciamp`: Add an IAM policy binding to a service account. -- `gciamr`: Create a custom role for a project or org -- `gciamd`: Delete a custom role for a project or org. -- `gciampd`: Remove an IAM policy binding from a service account. -- `gciamro`: Describe a custom role for a project or org. -- `gciamsp`: Replace the IAM policy of a service account. -- `gciamu`: Undelete a custom role for a project or org. -- `gciamup`: Update a service account. -- `gcimp`: List available Cloud Identity domains. -- `gcimpe`: Add an IAM policy binding to a Cloud Identity domain. -- `gcimpr`: Remove an IAM policy binding from a Cloud Identity domain. -- `gcsac`: Obtain an access token for the Google Cloud APIs. - -### Compute - -- `gcc`: A convenience command group for all compute-related commands. -- `gcpa`: Add an IAM policy binding to a specified project. -- `gcpc`: Copy files. -- `gcpd`: Display metadata for a project (including its ID). -- `gcpdown`: Stop instance. -- `gcpds`: Create snapshot of persistent disks. -- `gcpid`: Display a VM instance's details. -- `gcpil`: List all VM instances in a project. -- `gcprm`: Delete instance. -- `gcpsk`: Delete a snapshot. -- `gcpssh`: Connect to a VM instance by using SSH. -- `gcpup`: Start instance. -- `gcpzl`:List Compute Engine zones. - -### Deployment Manager - -- `gcdm`: A convenience command group for all deployment-manager-related commands. -- `gcdma`: Create a new deployment. -- `gcdmd`: Delete a deployment. -- `gcdmg`: Describe a deployment. -- `gcdml`: List all deployments. -- `gcdmu`: Update a deployment. - -### DNS - -- `gcdns`: A convenience command group for all dns-related commands. -- `gcdnsz`: List managed DNS zones. -- `gcdnsc`: List or apply DNS record sets changes. -- `gcdnsd`: Delete a managed DNS zone. -- `gcdnsi`: Create a new managed DNS zone. -- `gcdnsk`: List and manage DNSSEC keys for a zone. -- `gcdnsl`: List record sets in a managed zone. -- `gcdnsr`: Start a transaction to add, update, or remove record sets. -- `gcdnss`: Execute a transaction to add, update, or remove record sets. -- `gcdnst`: Abort a transaction to add, update, or remove record sets. - -### Functions - -- `gcf`: A convenience command group for all functions-related commands. - -### Cloud Build - -- `gcb`: A convenience command group for all Cloud Build-related commands. -- `gcbh`: List all builds in a project. -- `gcbb`: Submit a build to Cloud Build. - -### Cloud Run - -- `gcr`: A convenience command group for all Cloud Run-related commands. -- `gcrd`: Deploy a container to Cloud Run. -- `gcrs`: List, describe, and manage services on Cloud Run. -- `gcru`: Update an existing Cloud Run service. -- `gcrf`: Display logs for a Cloud Run service. - -### Cloud Storage - -- `gcs`: A convenience command group for all Cloud Storage-related commands. -- `gcsc`: Copy files and objects to/from Cloud Storage. -- `gcscp`: Copy files and objects to/from Cloud Storage using parallel processing. -- `gcsd`: Display the total size of a bucket or object. -- `gcsl`:List contents of a bucket or folder. -- `gcspm`: Set metadata for objects in Cloud Storage. - -### BigQuery - -- `gcbq`: A convenience command group for all BigQuery-related commands. -- `gcbql`: List all datasets in a project. -- `gcbqs`: Show details about a specific dataset or table. -- `gcbqd`: Delete a dataset or table. -- `gcbqc`: Run a BigQuery SQL query. - -### Cloud SQL - -- `gcsql`: A convenience command group for all Cloud SQL-related commands. -- `gcsqlc`: Connect to a Cloud SQL instance. -- `gcsqlc`: Create a new Cloud SQL instance. -- `gcsqlr`: Describe a Cloud SQL instance. -- `gcsqlu`: Update the password for a Cloud SQL user. - -### Pub/Sub - -- `gcps`: A convenience command group for all Pub/Sub-related commands. -- `gcpsp`: List, create, and manage Pub/Sub topics. -- `gcpss`: List, create, and manage Pub/Sub subscriptions. -- `gcpsp`: Publish a message to a Pub/Sub topic. + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΆπŸ…ΎπŸ…ΎπŸ…ΆπŸ…»πŸ…΄ πŸ…²πŸ…»πŸ…ΎπŸ†„πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of command aliases for managing various Google +Cloud services, such as Compute Engine, Identity and Access Management, +and Cloud SQL. These aliases help streamline the process of managing +Google Cloud resources by providing simple and memorable commands for +common use cases. + +- `gca` authenticates with Google Cloud. +- `gcb` accesses beta commands. +- `gcb` manages Google Cloud Build. +- `gcca` manages Compute Engine IP addresses. +- `gccc` creates a new virtual machine instance. +- `gcco` connects to a virtual machine instance by using SSH. +- `gcd` sets the default project to the current directory name. +- `gcdb` manages Google Cloud Datastore. +- `gcdp` manages Google Cloud Dataproc. +- `gce` manages Google Cloud Endpoints. +- `gcem` manages Google Cloud Eventarc. +- `gcf` manages Google Cloud Functions. +- `gci` manages Google Cloud Compute Engine instances. +- `gcic` manages Google Cloud Identity and Access Management. +- `gcir` manages Google Cloud IoT Core. +- `gck` lists all configurations. +- `gcki` manages Google Cloud KMS. +- `gcla` manages Google Cloud Logging. +- `gcma` manages Google Cloud Monitoring. +- `gcn` manages Google Cloud Networks. +- `gcp` manages Google Cloud projects. +- `gcpd` deletes a Google Cloud project. +- `gcpha` displays details for a Compute Engine IP address. +- `gcps` manages Google Cloud Pub/Sub. +- `gcr` deletes a container image from Google Container Registry. +- `gcrm` manages Google Cloud resources. +- `gcro` manages Google Cloud Run. +- `gcs` manages Google Cloud Kubernetes Engine clusters. +- `gcsa` sets the account for the current configuration. +- `gcsc` manages Google Cloud Source Repositories. +- `gcso` opens the Google Cloud Console for the current project. +- `gcsq` manages Google Cloud SQL. +- `gcss` manages Google Cloud Storage. +- `gcst` enables or disables Google Cloud services. +- `gct` manages Google Cloud Tasks. +- `gcu` manages Google Cloud App Engine. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/gcloud/gcloud.aliases.sh b/lib/aliases/gcloud/gcloud.aliases.sh index a40831a1..9f329018 100644 --- a/lib/aliases/gcloud/gcloud.aliases.sh +++ b/lib/aliases/gcloud/gcloud.aliases.sh @@ -1,146 +1,335 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets Google Cloud Aliases # License: MIT # Script: gcloud.aliases.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io -if command -v 'gcloud' >/dev/null; then - - # Authenticate and authorize - alias gcaasa='gcloud auth activate-service-account' # gcaasa: Like gcloud auth login but with service account credentials. - alias gcacd='gcloud auth configure-docker' # gcacd: Configure Docker to use gcloud as a credential helper. - alias gcal='gcloud auth list' # gcal: List the accounts you are logged in with. - alias gcapat='gcloud auth print-access-token' # gcapat: Print the access token for the current active account. - alias gcar='gcloud auth revoke' # gcar: Revoke credentials for the current active account. - - # App Engine - alias gcapb='gcloud app browse' # gcapb: Open the App Engine app in your default browser. - alias gcapc='gcloud app create' # gcapc: Create a new App Engine app. - alias gcapd='gcloud app deploy' # gcapd: Deploy an App Engine app. - alias gcapl='gcloud app logs read' # gcapl: Read the logs for an App Engine app. - alias gcapv='gcloud app versions list' # gcapv: List the versions of an App Engine app. - - # Cloud SDK configuration and management - alias gccca='gcloud config configurations activate' # gccca: Switch to an existing named configuration. - alias gcccc='gcloud config configurations create' # gcccc: Create a new named configuration. - alias gcccl='gcloud config configurations list' # gcccl: Display a list of all available configurations. - alias gccl='gcloud config list' # gccl:Display all the properties for the current configuration. - alias gccgv='gcloud config get-value' # gccgv: Fetch value of a Cloud SDK property. - alias gccs='gcloud config set' # gccs: Define a property (like compute/zone) for the current configuration. - alias gccsp='gcloud config set project' # gccsp: Set a default Google Cloud project to work on. - alias gccu='gcloud components update' # gccu: Update your Cloud SDK to the latest version. - alias gci='gcloud init' # gci: Initialize, authorize, and configure the gcloud tool. - alias gcinf='gcloud info' # gcinf: Display current gcloud tool environment details. - alias gciov='gcloud io verify-email' # gciov: Verify your email address for Google Cloud. - - # Container - alias gcccc='gcloud container clusters create' # gcccc: Create a cluster to run GKE containers. - alias gcccg='gcloud container clusters get-credentials' # gcccg: Update kubeconfig to get kubectl to use a GKE cluster. - alias gcccl='gcloud container clusters list' # gcccl: List clusters for running GKE containers. - alias gccil='gcloud container images list-tags' # gccil: List tag and digest metadata for a container image. - alias gcd='gcloud container' # gcd: A convenience command group for all container-related commands. - - # IAM - alias gciamk='gcloud iam service-accounts keys list' # gciamk: List a service account's keys. - alias gciaml='gcloud iam list-grantable-roles' # gciaml: List IAM grantable roles for a resource. - alias gciamp='gcloud iam service-accounts add-iam-policy-binding' # gciamp: Add an IAM policy binding to a service account. - alias gciamr='gcloud iam roles create' # gciamr: Create a custom role for a project or org - alias gciamd='gcloud iam roles delete' # gciamd: Delete a custom role for a project or org. - alias gciampd='gcloud iam service-accounts remove-iam-policy-binding' # gciampd: Remove an IAM policy binding from a service account. - alias gciamro='gcloud iam roles describe' # gciamro: Describe a custom role for a project or org. - alias gciamsp='gcloud iam service-accounts set-iam-policy' # gciamsp: Replace the IAM policy of a service account. - alias gciamu='gcloud iam roles undelete' # gciamu: Undelete a custom role for a project or org. - alias gciamup='gcloud iam service-accounts update' # gciamup: Update a service account. - alias gcimp='gcloud organizations list' # gcimp: List available Cloud Identity domains. - alias gcimpe='gcloud organizations add-iam-policy-binding' # gcimpe: Add an IAM policy binding to a Cloud Identity domain. - alias gcimpr='gcloud organizations remove-iam-policy-binding' # gcimpr: Remove an IAM policy binding from a Cloud Identity domain. - alias gcsac='gcloud auth application-default login' # gcsac: Obtain an access token for the Google Cloud APIs. - - # Compute - alias gcc='gcloud compute' # gcc: A convenience command group for all compute-related commands. - alias gcpa='gcloud projects add-iam-policy-binding' # gcpa: Add an IAM policy binding to a specified project. - alias gcpc='gcloud compute copy-files' # gcpc: Copy files. - alias gcpd='gcloud projects describe' # gcpd: Display metadata for a project (including its ID). - alias gcpdown='gcloud compute instances stop' # gcpdown: Stop instance. - alias gcpds='gcloud compute disks snapshot' # gcpds: Create snapshot of persistent disks. - alias gcpid='gcloud compute instances describe' # gcpid: Display a VM instance's details. - alias gcpil='gcloud compute instances list' # gcpil: List all VM instances in a project. - alias gcprm='gcloud compute instances delete' # gcprm: Delete instance. - alias gcpsk='gcloud compute snapshots delete' # gcpsk: Delete a snapshot. - alias gcpssh='gcloud compute ssh' # gcpssh: Connect to a VM instance by using SSH. - alias gcpup='gcloud compute instances start' # gcpup: Start instance. - alias gcpzl='gcloud compute zones list' # gcpzl:List Compute Engine zones. - - # Deployment Manager - alias gcdm='gcloud deployment-manager' # gcdm: A convenience command group for all deployment-manager-related commands. - alias gcdma='gcloud deployment-manager deployments create' # gcdma: Create a new deployment. - alias gcdmd='gcloud deployment-manager deployments delete' # gcdmd: Delete a deployment. - alias gcdmg='gcloud deployment-manager deployments describe' # gcdmg: Describe a deployment. - alias gcdml='gcloud deployment-manager deployments list' # gcdml: List all deployments. - alias gcdmu='gcloud deployment-manager deployments update' # gcdmu: Update a deployment. - - # DNS - alias gcdns='gcloud dns' # gcdns: A convenience command group for all dns-related commands. - alias gcdnsz='gcloud dns managed-zones' # gcdnsz: List managed DNS zones. - alias gcdnsc='gcloud dns record-sets changes' # gcdnsc: List or apply DNS record sets changes. - alias gcdnsd='gcloud dns managed-zones delete' # gcdnsd: Delete a managed DNS zone. - alias gcdnsi='gcloud dns managed-zones create' # gcdnsi: Create a new managed DNS zone. - alias gcdnsk='gcloud dns dns-keys' # gcdnsk: List and manage DNSSEC keys for a zone. - alias gcdnsl='gcloud dns record-sets list' # gcdnsl: List record sets in a managed zone. - alias gcdnsr='gcloud dns record-sets transaction start' # gcdnsr: Start a transaction to add, update, or remove record sets. - alias gcdnss='gcloud dns record-sets transaction execute' # gcdnss: Execute a transaction to add, update, or remove record sets. - alias gcdnst='gcloud dns record-sets transaction abort' # gcdnst: Abort a transaction to add, update, or remove record sets. - - # Functions - alias gcf='gcloud functions' # gcf: A convenience command group for all functions-related commands. - - # Cloud Build - - alias gcb='gcloud builds' # gcb: A convenience command group for all Cloud Build-related commands. - alias gcbh='gcloud builds list' # gcbh: List all builds in a project. - alias gcbb='gcloud builds submit' # gcbb: Submit a build to Cloud Build. - - # Cloud Run - - alias gcr='gcloud run' # gcr: A convenience command group for all Cloud Run-related commands. - alias gcrd='gcloud run deploy' # gcrd: Deploy a container to Cloud Run. - alias gcrs='gcloud run services' # gcrs: List, describe, and manage services on Cloud Run. - alias gcru='gcloud run update' # gcru: Update an existing Cloud Run service. - alias gcrf='gcloud run logs' # gcrf: Display logs for a Cloud Run service. - - # Cloud Storage - - alias gcs='gsutil' # gcs: A convenience command group for all Cloud Storage-related commands. - alias gcsc='gsutil cp' # gcsc: Copy files and objects to/from Cloud Storage. - alias gcscp='gsutil -m cp' # gcscp: Copy files and objects to/from Cloud Storage using parallel processing. - alias gcsd='gsutil du' # gcsd: Display the total size of a bucket or object. - alias gcsl='gsutil ls' # gcsl:List contents of a bucket or folder. - alias gcspm='gsutil setmeta' # gcspm: Set metadata for objects in Cloud Storage. - - # BigQuery - - alias gcbq='bq' # gcbq: A convenience command group for all BigQuery-related commands. - alias gcbql='bq ls' # gcbql: List all datasets in a project. - alias gcbqs='bq show' # gcbqs: Show details about a specific dataset or table. - alias gcbqd='bq rm' # gcbqd: Delete a dataset or table. - alias gcbqc='bq query' # gcbqc: Run a BigQuery SQL query. - - # Cloud SQL - - alias gcsql='gcloud sql' # gcsql: A convenience command group for all Cloud SQL-related commands. - alias gcsqlc='gcloud sql connect' # gcsqlc: Connect to a Cloud SQL instance. - alias gcsqlc='gcloud sql instances create' # gcsqlc: Create a new Cloud SQL instance. - alias gcsqlr='gcloud sql instances describe' # gcsqlr: Describe a Cloud SQL instance. - alias gcsqlu='gcloud sql users set-password' # gcsqlu: Update the password for a Cloud SQL user. - - # Pub/Sub - - alias gcps='gcloud pubsub' # gcps: A convenience command group for all Pub/Sub-related commands. - alias gcpsp='gcloud pubsub topics' # gcpsp: List, create, and manage Pub/Sub topics. - alias gcpss='gcloud pubsub subscriptions' # gcpss: List, create, and manage Pub/Sub subscriptions. - alias gcpsp='gcloud pubsub publish' # gcpsp: Publish a message to a Pub/Sub topic. +# πŸ…ΆπŸ…²πŸ…»πŸ…ΎπŸ†„πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Google Cloud aliases. +if command -v gcloud &>/dev/null; then + # Sections: + # + # 1.0 Google Cloud Aliases. + # 1.1 Aliases to get going with the gcloud command-line tool. + # 1.2 Aliases to make the Cloud SDK your own; personalize your + # configuration with properties. + # 1.3 Aliases to grant and revoke authorization to Cloud SDK. + # 1.4 Aliases to configuring Cloud Identity & Access Management + # (IAM) preferences and service accounts. + # 1.5 Aliases to manage project access policies. + # 1.6 Aliases to manage containerized applications on Kubernetes. + # 1.7 Aliases to create, run, and manage VMs on Google + # infrastructure. + # 1.8 Aliases to build highly scalable applications on a fully + # managed serverless platform. + # 1.9 Aliases to commands that might come in handy. + # 1.10 Additional Google Cloud Aliases. + + ## ------------------------------------------------------------------ + ## 1.0 Google Cloud Aliases + ## ------------------------------------------------------------------ + ## ------------------------------------------------------------------ + ## 1.1 Aliases to get going with the gcloud command-line tool. + ## ------------------------------------------------------------------ + + # Install specific components. + alias gcci='gcloud components install' + + # Set a default Google Cloud project to work on. + alias gccsp='gcloud config set project' + + # Update your Cloud SDK to the latest version. + alias gccu='gcloud components update' + + # Initialize, authorize, and configure the gcloud tool. + alias gci='gcloud init' + + # Display current gcloud tool environment details. + alias gcinf='gcloud info' + + # Display version and installed components. + alias gcv='gcloud version' + + ## ------------------------------------------------------------------ + ## 1.2 Aliases to make the Cloud SDK your own; personalize your + ## configuration with properties. + ## ------------------------------------------------------------------ + + # Switch to an existing named configuration. + alias gccca='gcloud config configurations activate' + + # Create a new named configuration. + alias gcccc='gcloud config configurations create' + + # Display a list of all available configurations. + alias gcccl='gcloud config configurations list' + + # Fetch value of a Cloud SDK property. + alias gccgv='gcloud config get-value' + + # Display all the properties for the current configuration. + alias gccl='gcloud config list' + + # Define a property (like compute/zone) for the current configuration. + alias gccs='gcloud config set' + + ## ------------------------------------------------------------------ + ## 1.3 Aliases to grant and revoke authorization to Cloud SDK + ## ------------------------------------------------------------------ + + # Like gcloud auth login but with service account credentials. + alias gcaasa='gcloud auth activate-service-account' + + # Register the gcloud tool as a Docker credential helper. + alias gcacd='gcloud auth configure-docker' + + # List all credentialed accounts. + alias gcal='gcloud auth list' + + # Authorize Google Cloud access for the gcloud tool with Google user + # credentials and set current account as active. + alias gcal='gcloud auth login' + + # Display the current account's access token. + alias gcapat='gcloud auth print-access-token' + + # Remove access credentials for an account. + alias gcar='gcloud auth revoke' + + ## ------------------------------------------------------------------ + ## 1.4 Aliases to configuring Cloud Identity & Access Management + ## (IAM) preferences and service accounts. + ## ------------------------------------------------------------------ + + # List a service account's keys. + alias gciamk='gcloud iam service-accounts keys list' + + # List IAM grantable roles for a resource. + alias gciaml='gcloud iam list-grantable-roles' + + # Add an IAM policy binding to a service account. + alias gciamp='gcloud iam service-accounts add-iam-policy-binding' + + # Create a custom role for a project or org. + alias gciamr='gcloud iam roles create' + + # Replace existing IAM policy binding. + alias gciams='gcloud iam service-accounts set-iam-policy' + + # Create a service account for a project. + alias gciamv='gcloud iam service-accounts create' + + ## ------------------------------------------------------------------ + ## 1.5 Aliases to manage project access policies + ## ------------------------------------------------------------------ + + # Add an IAM policy binding to a specified project. + alias gcpa='gcloud projects add-iam-policy-binding' + + # Display metadata for a project (including its ID). + alias gcpd='gcloud projects describe' + + ## ------------------------------------------------------------------- + ## 1.6 Aliases to manage containerized applications on Kubernetes + ## ------------------------------------------------------------------- + + # Create a cluster to run GKE containers. + alias gcccc='gcloud container clusters create' + + # Update kubeconfig to get kubectl to use a GKE cluster. + alias gcccg='gcloud container clusters get-credentials' + + # List clusters for running GKE containers. + alias gcccl='gcloud container clusters list' + + # List tag and digest metadata for a container image. + alias gccil='gcloud container images list-tags' + + ## ------------------------------------------------------------------- + ## 1.7 Aliases to create, run, and manage VMs on + ## Google infrastructure. + ## ------------------------------------------------------------------- + + # Copy files + alias gcpc='gcloud compute copy-files' + + # Stop instance + alias gcpdown='gcloud compute instances stop' + + # Create snapshot of persistent disks. + alias gcpds='gcloud compute disks snapshot' + + # Display a VM instance's details. + alias gcpid='gcloud compute instances describe' + + # List all VM instances in a project. + alias gcpil='gcloud compute instances list' + + # Delete instance + alias gcprm='gcloud compute instances delete' + + # Delete a snapshot. + alias gcpsk='gcloud compute snapshots delete' + + # Connect to a VM instance by using SSH. + alias gcpssh='gcloud compute ssh' + + # Start instance. + alias gcpup='gcloud compute instances start' + + # List Compute Engine zones. + alias gcpzl='gcloud compute zones list' + + ## ------------------------------------------------------------------- + ## 1.8 Aliases to build highly scalable applications on a fully + ## managed serverless platform. + ## ------------------------------------------------------------------- + + # Open the current app in a web browser. + alias gcapb='gcloud app browse' + + # Create an App Engine app within your current project. + alias gcapc='gcloud app create' + + # Deploy your app's code and configuration to the App Engine server. + alias gcapd='gcloud app deploy' + + # Display the latest App Engine app logs. + alias gcapl='gcloud app logs read' + + # List all versions of all services deployed to the App Engine server. + alias gcapv='gcloud app versions list' + + ## ------------------------------------------------------------------- + ## 1.9 Aliases to commands that might come in handy + ## ------------------------------------------------------------------- + + # Decrypt ciphertext (to a plaintext file) using a Cloud Key + # Management Service (Cloud KMS) key. + alias gckmsd='gcloud kms decrypt' + + # List your project's logs. + alias gclll='gcloud logging logs list' + + # Display info about a Cloud SQL instance backup. + alias gcsqlb='gcloud sql backups describe' + + # Export data from a Cloud SQL instance to a SQL file. + alias gcsqle='gcloud sql export sql' + + ## ------------------------------------------------------------------- + ## 1.10 Aliases to commands that might come in handy + ## ------------------------------------------------------------------- + + # Authenticate with Google Cloud. + alias gca='gcloud auth' + + # Access to beta commands. + alias gcb='gcloud beta' + + # Manage Google Cloud Build. + alias gcb='gcloud builds' + + # Manage Compute Engine IP addresses. + alias gcca='gcloud compute addresses' + + # Create a new virtual machine instance. + alias gccc='gcloud compute instances create' + + # Connect to a virtual machine instance by using SSH. + alias gcco='gcloud compute ssh' + + # Set default project to current directory name. + alias gcd='gcloud config set project $(gcloud projects list --format="value(projectId)" --filter="name:${PWD##\*/}")' + + # Manage Google Cloud Datastore. + alias gcdb='gcloud datastore' + + # Manage Google Cloud Dataproc. + alias gcdp='gcloud dataproc' + + # Manage Google Cloud Endpoints. + alias gce='gcloud endpoints' + + # Manage Google Cloud Eventarc. + alias gcem='gcloud eventarc' + + # Manage Google Cloud Functions. + alias gcf='gcloud functions' + + # Manage Google Cloud Compute Engine instances. + alias gci='gcloud compute instances' + + # Manage Google Cloud Identity and Access Management. + alias gcic='gcloud iam' + + # Manage Google Cloud IoT Core. + alias gcir='gcloud iot' + + # List all configurations. + alias gck='gcloud config configurations list' + + # Manage Google Cloud KMS. + alias gcki='gcloud kms' + + # Manage Google Cloud Logging. + alias gcla='gcloud logging' + + # Manage Google Cloud Monitoring. + alias gcma='gcloud monitoring' + + # Manage Google Cloud Networks. + alias gcn='gcloud networks' + + # Manage Google Cloud projects. + alias gcp='gcloud projects' + + # Delete a Google Cloud project. + alias gcpd='gcloud projects delete' + + # Display details for a Compute Engine IP address. + alias gcpha='gcloud compute addresses describe' + + # Manage Google Cloud Pub/Sub. + alias gcps='gcloud pubsub' + + # Delete a container image from Google Container Registry + alias gcr='gcloud container images delete' + + # Manage Google Cloud resources. + alias gcrm='gcloud resource-manager' + + # Manage Google Cloud Run. + alias gcro='gcloud run' + + # Manage Google Cloud Kubernetes Engine clusters. + alias gcs='gcloud container clusters' + + # Set the account for the current configuration. + alias gcsa='gcloud config set account' + + # Manage Google Cloud Source Repositories. + alias gcsc='gcloud source' + + # Open the Google Cloud Console for the current project. + alias gcso='gcloud organizations' + + # Manage Google Cloud SQL. + alias gcsq='gcloud sql' + + # Manage Google Cloud Storage. + alias gcss='gcloud storage' + + # Enable or disable Google Cloud services. + alias gcst='gcloud services' + + # Manage Google Cloud Tasks. + alias gct='gcloud tasks' + + # Manage Google Cloud App Engine. + alias gcu='gcloud app' fi diff --git a/lib/aliases/git/README.md b/lib/aliases/git/README.md new file mode 100644 index 00000000..d93b2476 --- /dev/null +++ b/lib/aliases/git/README.md @@ -0,0 +1,149 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΆπŸ…ΈπŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This is a collection of handy Git aliases that simplify and speed up +common Git commands, making them shorter and more intuitive. + +- `gc` Commit command to automatically "add" changes from all known + files +- `gca` Amend the tip of the current branch rather than creating a new + commit. +- `gcall` Commit all changes. +- `gcam` Amend the tip of the current branch, and edit the message. +- `gcane` Amend the tip of the current branch, and do not edit the + message. +- `gcint` Commit interactive. +- `gcm` Commit with a message. +- `gd` Show changes between the working tree and the index or a tree. +- `gdch` Show only names and status of changed files. +- `gdh` Show all changes of tracked files which are present in working + directory and staging area. +- `gdstaged` Show changes to files in the "staged" area. +- `gdcached` Shows the changes between the index and the HEAD (which is + the last commit on this branch). +- `gdstat` Generate a diffstat. +- `glc` Show log of changes, most recent first. +- `gld` Show the log of the recent day. +- `gldc` Show the date of the latest commit, in strict ISO 8601 format. +- `gldl` Show log with dates in our local timezone. +- `glf` Show log of new commits after you fetched, with stats, excluding + merges. +- `glfd` Show the date of the earliest commit, in strict ISO 8601 + format. +- `glfh` Visualization of branch topology. +- `glg` Show log as a graph. +- `glh` Show the log of the recent hour. +- `gll` Show log in our preferred format for our key performance + indicators. +- `glll` Show log in our preferred format for our key performance + indicators, with long items. +- `glm` Show the log of the recent month. +- `glmy` Show the log for my own commits by my own user email. +- `glw` Show the log of the recent week. +- `gly` Show the log of the recent year. +- `gclout` Clean and discard changes and untracked files in working + tree. +- `gco` Switch branches or restore working tree files. +- `gcb` Create a new branch named and start it at + . +- `gcode` Delete all local branches that have been merged into the local + main branch. +- `gcom` Ensure local is like the main branch. +- `gpb` Publish the current branch by pushing it to the remote "origin", + and setting the current branch to track the upstream branch. +- `gpo` Push local changes to the online repository. +- `gpt` Push local tags. +- `gpoll` Push each of your local git branches to the remote repository +- `gpull` Fetch from and integrate with another repository or a local + branch. +- `gpullm` Pull changes from the locally stored branch origin/master + and merge that to the local checked-out branch. +- `gpullo` Do a pull for just one branch. +- `gpush` Update remote refs along with associated objects. +- `gpusho` Do a push for just one branch. +- `gpushr` For each remote branch, push it. +- `gunpub` Unpublish the current branch by deleting the remote version + of the current branch. +- `gpcb` Push current branch +- `gr` Manage set of tracked repositories. +- `gra` Add a remote named `name` for the repository at `url`. +- `grall` Push all branches to all remotes. +- `grallo` Git remote all remotes except origin. +- `grao` Add a new remote 'origin' if it doesn't exist. +- `grbk` Rollback to stage. +- `grcl` Deletes all stale remote-tracking branches under `name`. +- `grf` Show GIT Remote Origin for each immediate subfolder. +- `grfall` Fetch all git remotes for a repo. +- `grp` Push all remotes. +- `grprint` Print the url for the current repo. +- `grs` Gives some information about the remote `name`. +- `grso` Display where the origin resides. +- `gru` Fetch updates for a named set of remotes in the repository as + defined by remotes. +- `grv` Shows URLs of remote repositories when listing your current + remote connections. +- `grev` Undo the changes from some existing commits +- `grevnc` Revert without autocommit; useful when you're reverting + more than one commits' effect to your index in a row. +- `gsm` Enables foreign repositories to be embedded within a dedicated + subdirectory of the source tree. +- `gsmi` Initialize the submodules recorded in the index +- `gsma` Add the given repository as a submodule at the given path to + the changeset to be committed next to the current project: the current + project is termed the "superproject". +- `gsms` Synchronizes submodules' remote URL configuration setting to + the value specified in .gitmodules. +- `gsmu` Update the registered submodules to match what the superproject + expects by cloning missing submodules, fetching missing commits in + submodules and updating the working tree of the submodules. +- `gsmui` Submodule update with initialize +- `gsmuir` Submodule update with initialize and recursive; this is + useful to bring a submodule fully up to date. +- `gst` Show the working tree status. +- `gsta` Stash the changes. +- `gstrmu` Remove untracked files in a git repository. +- `gsts` Status with short format instead of full details. +- `gstsb` Status with short format and showing branch and tracking info. +- `gt` See all tags. +- `gtg` Create, list, delete or verify a tag object signed with GPG. +- `gtl` Last tag in the current branch. +- `gshow` Show various types of objects +- `gshf` Find the nearest parent branch of the current git branch. +- `gshls` Show list of files changed by commit. +- `gshnp` Given any git object, try to show it briefly. +- `gshwho` Show who contributed, in descending order by number of + commits. +- `grescl` Reset commit clean. +- `gresh` Reset commit hard. +- `gresp` Reset pristine. +- `gress` Reset commit. +- `gresu` Reset to upstream. +- `gtp` Get the top level directory name. +- `grpa` Get the current branch name. +- `gub` Get the upstream branch name. +- `grm` Remove files from the working tree and from the index. +- `grmc` Unstage and remove paths only from the index. +- `grmd` Remove files which have been deleted. +- `grmd2` Remove files which have been deleted. +- `grmds` Remove .DS_Store from the repository. +- `grmx` Remove for all deleted files, including those with space/quote + unprintable characters in their filename/path. +- `gblau`Prints per-line contribution per author for a GIT repository. +- `gconfdiff` Better git diff, word delimited and colorized. +- `gconfl` List all the settings. +- `gconfr` Output remote origin from within a local repository. +- `undopush` Undo the last push. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/git/git.aliases.sh b/lib/aliases/git/git.aliases.sh index 4d7aa74b..f9054bcf 100644 --- a/lib/aliases/git/git.aliases.sh +++ b/lib/aliases/git/git.aliases.sh @@ -1,140 +1,544 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…ΆπŸ…ΈπŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Git aliases. +# +# Sections: +# +# 1.0 Git Core aliases. +# 1.1 Work on the current change. +# 1.2 Start a working area. +# 1.3 Examine the history and state. +# 1.4 List, create, or delete branches. +# 1.5 Collaborate. +# 1.6 Record changes to the repository. +# 1.7 Show changes between commits, commit and working tree, etc. +# 1.8 Show commit logs. +# 1.9 Switch branches or restore working tree files. +# 2.0 Update remote refs along with associated objects. +# 2.1 Aliases to manage set of tracked repositories. +# 2.2 Aliases to revert some existing commits. +# 2.3 Aliases to initialize, update or inspect submodules. +# 2.4 Aliases to show the working tree status. +# 2.5 Aliases to create, list, delete or verify a tag object +# signed with GPG. +# 2.6 Aliases to show various types of objects. +# 2.7 Aliases to reset current HEAD to the specified state. +# 2.8 Aliases to pick out and massage parameters. +# 2.9 Aliases to remove files from the working tree and from the +# index. +# 3.0 Aliases to show what revision and author last modified each +# line of a file. +# 3.1 Aliases to get and set repository or global options. +# +## -------------------------------------------------------------------- +## 1.0 Git Core aliases +## -------------------------------------------------------------------- + +## -------------------------------------------------------------------- +## 1.1 Aliases to work on the current change +## -------------------------------------------------------------------- + +if command -v git &>/dev/null; then + + # Short-form git commands. + alias g='git' + + # Add file contents to the index. + alias ga='git add' + + # Add file contents and update the index not only where the + # working tree has a file matching but also where the + # index already has an entry. + alias gaa='git add --all' + + # Add current directory file contents to the index. + alias gad='git add .' + + # Add file contents and update the index just where it already has an + # entry matching . + alias gau='git add --update' + + # Undo to last commit. + alias gco='git checkout' + + # Discard changes in a (list of) file(s) in working tree + alias gdis='checkout --' + + # Move or rename a file, a directory, or a symlink. + alias gmv='git mv' + + # Restore working tree files. + alias grs='git restore' + + # Remove files from the working tree and from the index. + alias grm='git remove' + + # Initialize and modify the sparse-checkout. + alias gsc='git sparse-checkout' + + ## ------------------------------------------------------------------ + ## 1.2 Aliases to start a working area + ## ------------------------------------------------------------------ + + # Clone a repository into a new directory. + alias gcl='git clone' + + # Create an empty Git repository or reinitialize an existing one. + alias gin='git init' + + ## ------------------------------------------------------------------ + ## 1.3 Aliases to examine the history and state + ## ------------------------------------------------------------------ + + # Use binary search to find the commit that introduced a bug. + alias gbs='git bisect' + + # Show changes between commits, commit and working tree, etc. + alias gd='git diff' + + # Print lines matching a pattern. + alias gg='git grep' + + # Show commit logs this month. + alias gl='git log --since="last month" --oneline' + + # Show commit logs and Draw a text-based graphical representation of + # the commit history on the left hand side of the output. + alias glg='git log --oneline --graph --full-history --all --color --decorate' + + # Show various types of objects. + alias gs='git show' + + ## ------------------------------------------------------------------ + ## 1.4 Aliases to list, create, or delete branches + ## ------------------------------------------------------------------ + + # gb: Create a branch. + alias gb='git branch' + + # gbd: Delete a branch. + alias gbd='git branch -d' + + # gbl: List branches. + alias gbl='git branch -l' + + # gbr: List the remote-tracking branches. + alias gbr='git branch -r' + + # gbrd: Delete the remote-tracking branches. + alias gbrd='git branch -d -r' + + # Print a list of branches and their commits. + alias gbrsb='git show-branch' + + # gct: Record changes to the repository. + alias gct='git commit' + + # gmg: Join two or more development histories together. + alias gmg='git merge' + + # grb: Reapply commits on top of another base tip. + alias grb='git rebase' + + # grs: Reset current HEAD to the specified state. + alias grs='git reset' + + # gswb: Switch branches. + alias gswb='git switch' + + ## ------------------------------------------------------------------ + ## 1.5 Aliases to collaborate + ## ------------------------------------------------------------------ + + # Create an empty Git repository or reinitialize an existing one. + alias gi='git init' -if command -v 'git' >/dev/null; then - alias g='git' # g: Short-form git commands. - alias ga='git add' # ga: Add file contents to the index. - alias gaa='git add --all' # gaa: Add file contents and update the index not only where the working tree has a file matching but also where the index already has an entry. - alias gad='git add .' # gad: Add current directory file contents to the index. - alias gau='git add --update' # gau: Add file contents and update the index just where it already has an entry matching . - alias gco='git checkout' # gco: Undo to last commit. - alias gdis='checkout --' # gdis: Discard changes in a (list of) file(s) in working tree - alias gmv='git mv' # gmv: Move or rename a file, a directory, or a symlink. - alias grs='git restore' # grs: Restore working tree files. - alias grm='git remove' # grm: Remove files from the working tree and from the index. - alias gsc='git sparse-checkout' # gsc: Initialize and modify the sparse-checkout. - alias gcl='git clone' # gcl: Clone a repository into a new directory. - alias gin='git init' # gin: Create an empty Git repository or reinitialize an existing one. - alias gbs='git bisect' # gbs: Use binary search to find the commit that introduced a bug. - alias gd='git diff' # gd: Show changes between commits, commit and working tree, etc. - alias gg='git grep' # gg: Print lines matching a pattern. - alias gl='git log --since="last month" --oneline' # gl: Show commit logs this month. - alias glg='git log --oneline --graph --full-history --all --color --decorate' # glg: Show commit logs and Draw a text-based graphical representation of the commit history on the left hand side of the output. - alias gs='git show' # Show various types of objects. - alias gb='git branch' # gb: Create a branch. - alias gbd='git branch -d' # gbd: Delete a branch. - alias gbl='git branch -l' # gbl: List branches. - alias gbr='git branch -r' # gbr: List the remote-tracking branches. - alias gbrd='git branch -d -r' # gbrd: Delete the remote-tracking branches. - alias gbrsb='git show-branch' # Print a list of branches and their commits. - alias gct='git commit' # gct: Record changes to the repository. - alias gmg='git merge' # gmg: Join two or more development histories together. - alias grb='git rebase' # grb: Reapply commits on top of another base tip. - alias grs='git reset' # grs: Reset current HEAD to the specified state. - alias gswb='git switch' # gswb: Switch branches. - alias gi='git init' # gi: Create an empty Git repository or reinitialize an existing one. - alias gf='git fetch' # gf: Download objects and refs from another repository. - alias gp='git pull' # gp: Fetch from and integrate with another repository or a local branch. - alias gph='git push' # Update remote refs along with associated objects. - alias gc='git commit -a' # Commit command to automatically "add" changes from all known files. - alias gca='git commit --amend' # Amend the tip of the current branch rather than creating a new commit. - alias gcall='git add -A && git commit -av' # Commit all changes. - alias gcam='git commit --amend --message' # Amend the tip of the current branch, and edit the message. - alias gcane='git commit --amend --no-edit' # Amend the tip of the current branch, and do not edit the message. - alias gcint='git commit --interactive' # Commit interactive. - alias gcm='git commit --message ' # Commit with a message. - alias gd='git diff' # Show changes between the working tree and the index or a tree. - alias gdch='git diff --name-status' # Show only names and status of changed files. - alias gdh='git diff HEAD' # Show all changes of tracked files which are present in working directory and staging area. - alias gdstaged='git diff --staged' # Show changes to files in the "staged" area. - alias gdcached='git diff --cached' # Shows the changes between the index and the HEAD (which is the last commit on this branch). - alias gdstat='git diff --stat --ignore-space-change -r' # Generate a diffstat. - alias glc='git log --oneline --reverse' # Show log of changes, most recent first. - alias gld='git log --since=1-day-ago' # Show the log of the recent day. - alias gldc='git log -1 --date-order --format=%cI' # Show the date of the latest commit, in strict ISO 8601 format. - alias gldl='git log --date=local' # Show log with dates in our local timezone. - alias glf='git log ORIG_HEAD.. --stat --no-merges' # Show log of new commits after you fetched, with stats, excluding merges. - alias glfd='!"git log --date-order --format=%cI | tail -1"' # Show the date of the earliest commit, in strict ISO 8601 format. - alias glfh='git log --graph --full-history --all --color' # Visualization of branch topology. - alias glg='git log --graph --all --oneline --decorate' # Show log as a graph. - alias glh='git log --since=1-hour-ago' # Show the log of the recent hour. - # Show log in our preferred format for our key performance indicators. A.k.a. `ll`. + # Download objects and refs from another repository. + alias gf='git fetch' + + # Fetch from and integrate with another repository or a local branch. + alias gp='git pull' + + # Update remote refs along with associated objects. + alias gph='git push' + + ## ------------------------------------------------------------------ + ## 1.6 Aliases to record changes to the repository + ## ------------------------------------------------------------------ + + # Commit command to automatically "add" changes from all known files. + alias gc='git commit -a' + + # Amend the tip of the current branch rather than creating a new + # commit. + alias gca='git commit --amend' + + # Commit all changes. + alias gcall='git add -A && git commit -av' + + # Amend the tip of the current branch, and edit the message. + alias gcam='git commit --amend --message ' + + # Amend the tip of the current branch, and do not edit the message. + alias gcane='git commit --amend --no-edit' + + # Commit interactive. + alias gcint='git commit --interactive' + + # Commit with a message. + alias gcm='git commit --message ' + + ## ------------------------------------------------------------------ + ## 1.7 Aliases to show changes between commits, commit and working + ## tree, etc. + ## ------------------------------------------------------------------ + + # Show changes between the working tree and the index or a tree. + alias gd='git diff' + + # Show only names and status of changed files. + alias gdch='git diff --name-status' + + # Show all changes of tracked files which are present in working + # directory and staging area. + alias gdh='git diff HEAD' + + # Show changes to files in the "staged" area. + alias gdstaged='git diff --staged' + + # Shows the changes between the index and the HEAD (which is the last + # commit on this branch). + alias gdcached='git diff --cached' + + # Generate a diffstat. + alias gdstat='git diff --stat --ignore-space-change -r' + + ## ------------------------------------------------------------------ + ## 1.8 Aliases to show commit logs + ## ------------------------------------------------------------------ + + # Show log of changes, most recent first. + alias glc='git log --oneline --reverse' + + # Show the log of the recent day. + alias gld='git log --since=1-day-ago' + + # Show the date of the latest commit, in strict ISO 8601 format. + alias gldc='git log -1 --date-order --format=%cI' + + # Show log with dates in our local timezone. + alias gldl='git log --date=local' + + # Show log of new commits after you fetched, with stats, excluding + # merges. + alias glf='git log ORIG_HEAD.. --stat --no-merges' + + # Show the date of the earliest commit, in strict ISO 8601 format. + alias glfd='!"git log --date-order --format=%cI | tail -1"' + + # Visualization of branch topology. + alias glfh='git log --graph --full-history --all --color' + + # Show log as a graph. + alias glg='git log --graph --all --oneline --decorate' + + # Show the log of the recent hour. + alias glh='git log --since=1-hour-ago' + + # Show log in our preferred format for our key performance indicators. alias gll='git log --graph --topo-order --date=short --abbrev-commit --decorate --all --boundary --pretty=format:"%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset %Cblue%G?%Creset"' - # Show log in our preferred format for our key performance indicators, with long items. A.k.a. `lll`. + + # Show log in our preferred format for our key performance indicators, + # with long items. alias glll='git log --graph --topo-order --date=iso8601-strict --no-abbrev-commit --decorate --all --boundary --pretty=format:"%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn <%ce>]%Creset %Cblue%G?%Creset"' - alias glm='git log --since=1-month-ago' # Show the log of the recent month. - alias glmy='!git log --author $(git config user.email)' # Show the log for my own commits by my own user email. - alias glw='git log --since=1-week-ago' # Show the log of the recent week. - alias gly='git log --since=1-year-ago' # Show the log of the recent year. - alias gclout='git clean -df && git checkout -- .' # Clean and discard changes and untracked files in working tree. - alias gco='git checkout' # Switch branches or restore working tree files. - alias gcb='git checkout -b' # Create a new branch named and start it at . - alias gcode='git checkout main && git branch --merged | xargs git branch --delete' # Delete all local branches that have been merged into the local main branch. - alias gcom='git checkout main && git fetch origin --prune && git reset --hard origin/main' # Ensure local is like the main branch. - alias gpb='git push --set-upstream origin $(git current-branch)' # Publish the current branch by pushing it to the remote "origin", and setting the current branch to track the upstream branch. - alias gpo='git push origin' # Push local changes to the online repository. - alias gpt='git push --tags' # Push local tags. - alias gpoll='git push origin --all' # Push each of your local git branches to the remote repository - alias gpull='git pull' # Fetch from and integrate with another repository or a local branch. - alias gpullm='git pull origin master' # Pull changes from the locally stored branch origin/master and merge that to the local checked-out branch. - alias gpullo='git pull origin $(git current-branch)' # Do a pull for just one branch. - alias gpush='git push' # Update remote refs along with associated objects. - alias gpusho='git push origin $(git current-branch)' # Do a push for just one branch. - alias gpushr='git remote | xargs -I% -n1 git push %' # For each remote branch, push it. - alias gunpub='git push origin :$(git current-branch)' # Unpublish the current branch by deleting the remote version of the current branch. - alias gr='git remote' # Manage set of tracked repositories. - alias gra='git remote add' # Add a remote named name for the repository at url. - alias grall='git remote | xargs -L1 git push --all' # Push all branches to all remotes. - alias grao='git remote add origin' # Add a new remote 'origin' if it doesn't exist. - alias grbk='git reset --soft HEAD^' # Rollback to stage. - alias grcl='git remote prune' # Deletes all stale remote-tracking branches under . - alias grp="git remote | xargs -I% -n1 git push %" # For each remote branch, push it. - # Push all remotes. Print the url for the current repo. - alias grprint="git remote -v | sed -n '/github.com.*push/{s/^[^[:space:]]\+[[:space:]]\+//;s|git@github.com:|https://github.com/|;s/\.git.*//;p}" - alias grs='git show' # Gives some information about the remote . - alias grso='git remote show origin' # Display where the origin resides. - alias gru='git remote update' # Fetch updates for a named set of remotes in the repository as defined by remotes. - alias grv='git remote -v' # Shows URLs of remote repositories when listing your current remote connections. - alias grev='git revert' # Undo the changes from some existing commits - alias grevnc='git revert --no-commit' # Revert without autocommit; useful when you're reverting more than one commits' effect to your index in a row. - alias gsm='git submodule' # Enables foreign repositories to be embedded within a dedicated subdirectory of the source tree. - alias gsmi='git submodule init' # Initialize the submodules recorded in the index - alias gsma='git submodule add' # Add the given repository as a submodule at the given path to the changeset to be committed next to the current project: the current project is termed the "superproject". - alias gsms='git submodule sync' # Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules. - alias gsmu='git submodule update' # Update the registered submodules to match what the superproject expects by cloning missing submodules, fetching missing commits in submodules and updating the working tree of the submodules. - alias gsmui='git submodule update --init' # Submodule update with initialize - alias gsmuir='git submodule update --init --recursive' # Submodule update with initialize and recursive; this is useful to bring a submodule fully up to date. - alias gst='git status' # Show the working tree status. - alias gsta='git stash save ' # Stash the changes. - alias gsts='git status --short' # Status with short format instead of full details. - alias gstsb='git status --short --branch' # Status with short format and showing branch and tracking info. - alias gt='git tag' # See all tags. - alias gtg='git tag' # Create, list, delete or verify a tag object signed with GPG. - alias gtl='git describe --tags --abbrev=0' # Last tag in the current branch. - alias gshow='git show' # Show various types of objects - alias gshls='git show --relative --pretty=format:''' # Show list of files changed by commit. - alias gshnp='git show --no-patch --pretty="tformat:%h (%s, %ad)" --date=short' # Given any git object, try to show it briefly. - alias gshwho='git shortlog --summary --numbered --no-merges' # Show who contributed, in descending order by number of commits. - alias grescl='git reset --hard HEAD~1 && git clean -fd' # Reset commit clean. - alias gresh='git reset --hard HEAD~1' # Reset commit hard. - alias gresp='git reset --hard && git clean -ffdx' # Reset pristine. - alias gress='git reset --soft HEAD~1' # Reset commit. - alias gresu='git reset --hard $(git upstream-branch)' # Reset to upstream. - alias gtp='git rev-parse --show-toplevel' # Get the top level directory name. - alias grpa='git rev-parse --abbrev-ref HEAD' # Get the current branch name. - alias grm='git rm' # Remove files from the working tree and from the index. - alias grmc='git rm --cached' # Unstage and remove paths only from the index. - alias grmd='git ls-files -z --deleted | xargs -0 git rm' # Remove files which have been deleted. - alias grmd2='git rm $(git ls-files --deleted)' # Remove files which have been deleted. - alias grmds='find . -name .DS_Store -exec git rm --ignore-unmatch --cached {} +' # Remove .DS_Store from the repository. - alias grmx='git ls-files -z -d | xargs -0 git rm --' # Remove for all deleted files, including those with space/quote/unprintable characters in their filename/path. - alias gconfdiff='git config alias.dcolor "diff --color-words"' # Better git diff, word delimited and colorized. - alias gconfl='git config --list' # List all the settings. - alias gconfr='git config --local --get remote.origin.url' # Output remote origin from within a local repository. - alias undopush="git push -f origin HEAD^:master" # undopush: Undo the last push. + + # Show the log of the recent month. + alias glm='git log --since=1-month-ago' + + # Show the log for my own commits by my own user email. + alias glmy='!git log --author $(git config user.email)' + + # Show the log of the recent week. + alias glw='git log --since=1-week-ago' + + # Show the log of the recent year. + alias gly='git log --since=1-year-ago' + + ## ------------------------------------------------------------------ + ## 1.9 Aliases to switch branches or restore working tree files + ## ------------------------------------------------------------------ + + # Clean and discard changes and untracked files in working tree. + alias gclout='git clean -df && git checkout -- .' + + # Switch branches or restore working tree files. + alias gco='git checkout' + + # Create a new branch named and start it at + # . + alias gcb='git checkout -b' + + # Delete all local branches that have been merged into the local main + # branch. + alias gcode='git checkout main && git branch --merged | xargs git branch --delete' + + # Ensure local is like the main branch. + alias gcom='git checkout main && git fetch origin --prune && git reset --hard origin/main' + + ## ------------------------------------------------------------------ + ## 2.0 Aliases to update remote refs along with associated objects + ## ------------------------------------------------------------------ + + # Publish the current branch by pushing it to the remote "origin", and + # setting the current branch to track the upstream branch. + alias gpb='git push --set-upstream origin $(git current-branch)' + + # Push local changes to the online repository. + alias gpo='git push origin' + + # Push local tags. + alias gpt='git push --tags' + + # Push each of your local git branches to the remote repository + alias gpoll='git push origin --all' + + # Fetch from and integrate with another repository or a local branch. + alias gpull='git pull' + + # Pull changes from the locally stored branch origin/master and merge + # that to the local checked-out branch. + alias gpullm='git pull origin master' + + # Do a pull for just one branch. + alias gpullo='git pull origin $(git current-branch)' + + # Update remote refs along with associated objects. + alias gpush='git push' + + # Do a push for just one branch. + alias gpusho='git push origin $(git current-branch)' + + # For each remote branch, push it. + alias gpushr='git remote | xargs -I% -n1 git push %' + + # Unpublish the current branch by deleting the remote version of the + # current branch. + alias gunpub='git push origin :$(git current-branch)' + + # Push current branch + # alias gpcb='git push origin "$(git branch|grep '\*'|tr -d '* \n')"' + + ## ------------------------------------------------------------------ + ## 2.1 Aliases to manage set of tracked repositories + ## ------------------------------------------------------------------ + + # Manage set of tracked repositories. + alias gr='git remote' + + # Add a remote named for the repository at . + alias gra='git remote add' + + # Push all branches to all remotes. + alias grall='git remote | xargs -L1 git push --all' + + # Add a new remote 'origin' if it doesn't exist. + alias grao='git remote add origin' + + # Rollback to stage. + alias grbk='git reset --soft HEAD^' + + # Deletes all stale remote-tracking branches under . + alias grcl='git remote prune' + + # For each remote branch, push it. + alias grp="git remote | xargs -I% -n1 git push %" + + # Push all remotes. + # Print the url for the current repo. + alias grprint="git remote -v | sed -n '/github.com.*push/{ s/^[^[:space:]]\+[[:space:]]\+//; s|git@github.com:|https://github.com/|; s/\.git.*//; p }'" + + # Gives some information about the remote . + alias grs='git show' + + # Display where the origin resides. + alias grso='git remote show origin' + + # Fetch updates for a named set of remotes in the repository as + # defined by remotes. + alias gru='git remote update' + + # Shows URLs of remote repositories when listing your current remote + # connections. + alias grv='git remote -v' + + ## ------------------------------------------------------------------ + ## 2.2 Aliases to revert some existing commits + ## ------------------------------------------------------------------ + + # Undo the changes from some existing commits + alias grev='git revert' + + # Revert without autocommit; useful when you're reverting more than + # one commits' effect to your index in a row. + alias grevnc='git revert --no-commit' + + ## ------------------------------------------------------------------ + ## 2.3 Aliases to initialize, update or inspect submodules + ## ------------------------------------------------------------------ + + # Enables foreign repositories to be embedded within a dedicated + # subdirectory of the source tree. + alias gsm='git submodule' + + # Initialize the submodules recorded in the index + alias gsmi='git submodule init' + + # Add the given repository as a submodule at the given path to the + # changeset to be committed next to the current project: the current + # project is termed the "superproject". + alias gsma='git submodule add' + + # Synchronizes submodules' remote URL configuration setting to the + # value specified in .gitmodules. + alias gsms='git submodule sync' + + # Update the registered submodules to match what the superproject + # expects by cloning missing submodules, fetching missing commits in + # submodules and updating the working tree of the submodules. + alias gsmu='git submodule update' + + # Submodule update with initialize + alias gsmui='git submodule update --init' + + # Submodule update with initialize and recursive; this is useful to + # bring a submodule fully up to date. + alias gsmuir='git submodule update --init --recursive' + + ## ------------------------------------------------------------------ + ## 2.4 Aliases to show the working tree status + ## ------------------------------------------------------------------ + + # Show the working tree status. + alias gst='git status' + + # Stash the changes. + alias gsta='git stash save ' + + # Status with short format instead of full details. + alias gsts='git status --short' + + # Status with short format and showing branch and tracking info. + alias gstsb='git status --short --branch' + + ## ------------------------------------------------------------------ + ## 2.5 Aliases to create, list, delete or verify a tag object + ## signed with GPG. + ## ------------------------------------------------------------------ + + # See all tags. + alias gt='git tag' + + # Create, list, delete or verify a tag object signed with GPG. + alias gtg='git tag' + + # Last tag in the current branch. + alias gtl='git describe --tags --abbrev=0' + + ## ------------------------------------------------------------------ + ## 2.6 Aliases to show various types of objects. + ## ------------------------------------------------------------------ + + # Show various types of objects + alias gshow='git show' + + # Show list of files changed by commit. + alias gshls='git show --relative --pretty=format:''' + + # Given any git object, try to show it briefly. + alias gshnp='git show --no-patch --pretty="tformat:%h (%s, %ad)" --date=short' + + # Show who contributed, in descending order by number of commits. + alias gshwho='git shortlog --summary --numbered --no-merges' + + ## ------------------------------------------------------------------ + ## 2.7 Aliases to reset current HEAD to the specified state. + ## ------------------------------------------------------------------ + + # Reset commit clean. + alias grescl='git reset --hard HEAD~1 && git clean -fd' + + # Reset commit hard. + alias gresh='git reset --hard HEAD~1' + + # Reset pristine. + alias gresp='git reset --hard && git clean -ffdx' + + # Reset commit. + alias gress='git reset --soft HEAD~1' + + # Reset to upstream. + alias gresu='git reset --hard $(git upstream-branch)' + + ## ------------------------------------------------------------------ + ## 2.8 Aliases to pick out and massage parameters. + ## ------------------------------------------------------------------ + + # Get the top level directory name. + alias gtp='git rev-parse --show-toplevel' + + # Get the current branch name. + alias grpa='git rev-parse --abbrev-ref HEAD' + + ## ------------------------------------------------------------------ + ## 2.9 Aliases to remove files from the working tree and from the + ## index. + ## ------------------------------------------------------------------ + + # Remove files from the working tree and from the index. + alias grm='git rm' + + # Unstage and remove paths only from the index. + alias grmc='git rm --cached' + + # Remove files which have been deleted. + alias grmd='git ls-files -z --deleted | xargs -0 git rm' + + # Remove files which have been deleted. + alias grmd2='git rm $(git ls-files --deleted)' + + # Remove .DS_Store from the repository. + alias grmds='find . -name .DS_Store -exec git rm --ignore-unmatch --cached {} +' + + # Remove for all deleted files, including those with + # space/quote/unprintable characters in their filename/path. + alias grmx='git ls-files -z -d | xargs -0 git rm --' + + ## ------------------------------------------------------------------ + ## 3.0 Aliases to show what revision and author last modified each + ## line of a file. + ## ------------------------------------------------------------------ + + # Prints per-line contribution per author for a GIT repository. + # alias gblau='git ls-files | xargs -n1 git blame --line-porcelain | sed -n "s/^author //p" | sort -f | uniq -ic | sort -nr' + + ## ------------------------------------------------------------------ + ## 3.1 Aliases to get and set repository or global options. + ## ------------------------------------------------------------------ + + # Better git diff, word delimited and colorized. + alias gconfdiff='git config alias.dcolor "diff --color-words"' + + # List all the settings. + alias gconfl='git config --list' + + # Output remote origin from within a local repository. + alias gconfr='git config --local --get remote.origin.url' + + # Undo the last push. + alias undopush="git push -f origin HEAD^:master" fi diff --git a/lib/aliases/gnu/README.md b/lib/aliases/gnu/README.md new file mode 100644 index 00000000..eecf3892 --- /dev/null +++ b/lib/aliases/gnu/README.md @@ -0,0 +1,85 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΆπŸ…½πŸ†„ πŸ…²πŸ…ΎπŸ†πŸ…΄πŸ†„πŸ†ƒπŸ…ΈπŸ…»πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This is a collection of aliases for the GNU Coreutils package, which is +a set of standard Unix utilities often included in Linux distributions. +These aliases allow for easier use of these utilities by providing +shorthand commands that replace the full utility name with a shorter +alias. + +The aliases in this collection cover a wide range of utilities, from +basic file manipulation commands like "cp" and "rm" to more advanced +text processing commands like "awk" and "sed". There are also aliases +for various checksum and hash utilities like "md5sum" and "sha256sum". + +## πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +### Basic file management utilities + +- `basename` Strip directory and suffix from filenames. +- `cp` Copy files and directories. +- `dirname` Strip non-directory suffix from filenames. +- `ln` Create links between files. +- `loname` Print the name of the link. +- `ls` List directory contents. +- `mkdir` Create directories. +- `mkfifo` Make named pipes (FIFOs). +- `mknod` Make block or character special files. +- `mv` Move or rename files or directories. +- `pathchk` Check file name validity and portability. +- `pwd` Print working directory name. +- `readlink` Print resolved symbolic links or canonical file names. +- `realpath` Print the resolved physical path of the specified path. +- `rm` Remove files or directories. +- `rmdir` Remove empty directories. +- `unlink` Remove files or directories. + +### File content manipulation utilities + +- `awk` Pattern scanning and processing language. +- `cat` Concatenate and display files. +- `csplit` Split a file into context-determined pieces. +- `cut` Remove sections from each line of files. +- `diff` Compare files line by line. +- `fold` Wrap each input line to fit in specified width. +- `grep` Print lines matching a pattern. +- `head` Output the first part of files. +- `nl` Number lines of files. +- `paste` Merge lines of files. +- `patch` Apply a diff file to an original. +- `ptx` Produce a permuted index of file contents. +- `sed` Stream editor for filtering and transforming text. +- `sort` Sort lines of text files. +- `split` Split a file into pieces. +- `tail` Output the last part of files. +- `tr` Translate or delete characters. + +### File checksum and encryption utilities + +- `b2sum` Print or check BLAKE2 message digests. +- `cksum` Print CRC checksum and byte counts. +- `sha1sum` Print or check SHA1 message digests. +- `sha224sum` Print or check SHA224 message digests. +- `sha256sum` Print or check SHA256 message digests. +- `sha384sum` Print or check SHA384 message digests. +- `sha512sum` Print or check SHA512 message digests. + +### Other file utilities + +- `base32` Print or convert base32 data. +- `base64` Encode or decode base64 data. +- `basenc` Encode or decode base64, base32, + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/gnu/gnucoreutils-aliases.sh b/lib/aliases/gnu/gnucoreutils-aliases.sh index 3cf3f3ea..7b613c34 100644 --- a/lib/aliases/gnu/gnucoreutils-aliases.sh +++ b/lib/aliases/gnu/gnucoreutils-aliases.sh @@ -1,116 +1,150 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464)' - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c)' 2015-2023. All rights reserved # License: MIT # πŸ…ΆπŸ…½πŸ†„ πŸ…²πŸ…ΎπŸ†πŸ…΄πŸ†„πŸ†ƒπŸ…ΈπŸ…»πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + if command -v 'gdate' >/dev/null; then - alias b2sum=gb2sum # b2sum: Print or check BLAKE2b (512-bit) checksums. - alias base32=gbase32 # base32: Base32 encode or decode FILE, or standard input, to standard output. - alias base64=gbase64 # base64: Base64 encode or decode FILE, or standard input, to standard output. - alias basename=gbasename # basename: Print NAME with any leading directory components removed. - alias basenc=gbasenc # basenc: Encode or decode FILE, or standard input, to standard output. - alias cat=gcat # cat: Concatenate FILE(s), or standard input, to standard output. - alias chcon=gchcon # chcon: Change the SELinux security context of each FILE to CONTEXT. - alias chgrp=gchgrp # chgrp: Change the group of each FILE to GROUP. - alias chmod=gchmod # chmod: Change the mode of each FILE to MODE. - alias chown=gchownn # chown: Change the owner and/or group of each FILE to OWNER and/or GROUP. - alias chroot=gchroot # chroot: Run COMMAND with root directory set to NEWROOT. - alias cksum=gcksum # cksum: Print CRC checksum and byte counts. - alias comm=gcomm # comm: Compare two sorted files line by line. - alias cp=gcp # cp: Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. - alias csplit=gcsplit # csplit: Split a file into sections determined by context lines. - alias cut=gcut # cut: Print selected parts of lines from each FILE to standard output. - alias date=gdate # date: Print or set the system date and time. - alias dd=gdd # dd: Copy a file, converting and formatting according to the operands. - alias df=gdf # df: Report file system disk space usage. - alias dir=gdir # dir: List directory contents. - alias dircolors=gdircolors # dircolors: Convert ls' output colors to dircolors' format. - alias dirname=gdirname # dirname: Print NAME with its last non-slash component and trailing slashes removed. - alias du=gdu # du: Estimate file space usage. - alias echo=gecho # echo: Display a line of text. - alias env=genv # env: Print the current environment. - alias expand=gexpand # expand: Convert tabs in each FILE to spaces, writing to standard output. - alias expr=gexpr # expr: Evaluate EXPRESSION. - alias factor=gfactor # factor: Print prime factors of each given number. - alias false=gfalse # false: Do nothing, unsuccessfully. - alias fmt=gfmt # fmt: Reformat paragraph text. - alias fold=gfold # fold: Wrap each input line to fit in specified width. - alias grep=ggrep # grep: Print lines matching a pattern. - alias groups=ggroups # groups: Print the groups a user is in. - alias head=ghead # head: Print the first 10 lines of each FILE to standard output. - alias hostid=ghostid # hostid: Print the hostid. - alias id=gid # id: Print real and effective user and group IDs. - alias install=ginstall # install: Copy files and set attributes. - alias join=gjoin # join: Join lines of two files on a common field. - alias kill=gkill # kill: Send a signal to a process. - alias link=glink # link: Create a link to a file. - alias ln=gln # ln: Make links between files. - alias logname=glogname # logname: Print the user name associated with the current effective user ID. - alias ls=gls # ls: List directory contents. - alias md5sum=gmd5sum # md5sum: Print or check MD5 (128-bit) checksums. - alias mkdir=gmkdir # mkdir: Create the DIRECTORY(ies), if they do not already exist. - alias mkfifo=gmkfifo # mkfifo: Create named pipes (FIFOs) named PIPE. - alias mknod=gmknod # mknod: Create special files. - alias mktemp=gmktemp # mktemp: Create a temporary file or directory, safely. - alias mv=gmv # mv: Move SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. - alias nice=gnice # nice: Run a utility with modified scheduling priority. - alias nl=gnl # nl: Number lines of files, writing to standard output. - alias nohup=gnohup # nohup: Run a command immune to hangups, with output to a non-tty. - alias nproc=gnproc # nproc: Print the number of processing units available. - alias numfmt=gnumfmt # numfmt: Reformat numbers. - alias od=god # od: Dump a file in octal and other formats. - alias paste=gpaste # paste: Merge lines of files. - alias pathchk=gpathchk # pathchk: Check whether a file name is valid or portable. - alias pinky=gpinky # pinky: Print information about users. - alias pr=gpr # pr: Paginate FILE for printing. - alias printenv=gprintenv # printenv: Print the current environment. - alias printf=gprintf # printf: Format and print data. - alias ptx=gptx # ptx: Display the contents of a terminal control file. - alias pwd=gpwd # pwd: Print the name of the current working directory. - alias readlink=greadlink # readlink: Print value of a symbolic link or canonical file name. - alias realpath=grealpath # realpath: Canonicalize existing file names. - alias rm=grm # rm: Remove (unlink) the FILE(s). - alias rmdir=grmdir # rmdir: Remove the DIRECTORY(ies), if they are empty. - alias runcon=gruncon # runcon: Run a command with a different SELinux security context. - alias sed=gsed # sed: Stream editor for filtering and transforming text. - alias seq=gseq # seq: Print a sequence of numbers. - alias sha1sum=gsha1sum # sha1sum: Print or check SHA1 (160-bit) checksums. - alias sha224sum=gsha224sum # sha224sum: Print or check SHA224 (224-bit) checksums. - alias sha256sum=gsha256sum # sha256sum: Print or check SHA256 (256-bit) checksums. - alias sha384sum=gsha384sum # sha384sum: Print or check SHA384 (384-bit) checksums. - alias sha512sum=gsha512sum # sha512sum: Print or check SHA512 (512-bit) checksums. - alias shred=gshred # shred: Overwrite a file to hide its contents, and optionally delete it. - alias shuf=gshuf # shuf: Output a random permutation of the input lines. - alias sleep=gsleep # sleep: Pause for NUMBER seconds. - alias sort=gsort # sort: Sort lines of text files. - alias split=gsplit # split: Split a file into pieces. - alias stat=gstat # stat: Display file or file system status. - alias stdbuf=gstdbuf # stdbuf: Run COMMAND with modified buffering operations for its standard streams. - alias stty=gstty # stty: Get and set terminal attributes. - alias sum=gsum # sum: Print CRC checksum and byte counts. - alias sync=gsync # sync: Invoke sync to flush filesystem buffers. - alias tac=gtac # tac: Concatenate and print files in reverse. - alias tail=gtail # tail: Output the last part of files. - alias tee=gtee # tee: Read from standard input and write to standard output and files. - alias test=gtest # test: Evaluate conditional expression. - alias timeout=gtimeout # timeout: Run a command with a time limit. - alias touch=gtouch # touch: Change file timestamps. - alias tr=gtr # tr: Translate, squeeze, and/or delete characters. - alias true=gtrue # true: Do nothing, successfully. - alias truncate=gtruncate # truncate: Shrink or extend the size of a file to the specified size. - alias tsort=gtsort # tsort: Topological sort. - alias tty=gtty # tty: Print file name of terminal connected to standard input. - alias uname=guname # uname: Print certain system information. - alias unexpand=gunexpand # unexpand: Convert spaces in each FILE to tabs, writing to standard output. - alias uniq=guniq # uniq: Filter adjacent matching lines from INPUT (or standard input), writing to OUTPUT (or standard output). - alias unlink=gunlink # unlink: Call the unlink function to remove the specified FILE. - alias uptime=guptime # uptime: Print the current time, the length of time the system has been up, the number of users on the system, and the average number of jobs in the run queue over the last 1, 5 and 15 minutes. - alias users=gusers # users: Output who is currently logged in. - alias vdir=gvdir # vdir: List information about the FILEs (the current directory by default). - alias wc=gwc # wc: Print newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. - alias who=gwho # who: Print information about users who are currently logged in. - alias whoami=gwhoami # whoami: Print the user name associated with the current effective user ID. - alias yes=gyes # yes: Repeatedly output a line with all specified STRING(s), or 'y'. + + # Strip directory and suffix from filenames. + alias basename=basename + + # Copy files and directories. + alias cp=cp + + # Strip non-directory suffix from filenames. + alias dirname=dirname + + # Create links between files. + alias ln=ln + + # Print the name of the link. + alias loname=loname + + # List directory contents. + alias ls=ls + + # Create directories. + alias mkdir=mkdir + + # Make named pipes (FIFOs). + alias mkfifo=mkfifo + + # Make block or character special files. + alias mknod=mknod + + # Move or rename files or directories. + alias mv=mv + + # Check file name validity and portability. + alias pathchk=pathchk + + # Print working directory name. + alias pwd=pwd + + # Print resolved symbolic links or canonical file names. + alias readlink=readlink + + # Print the resolved physical path of the specified path. + alias realpath=realpath + + # Remove files or directories. + alias rm=rm + + # Remove empty directories. + alias rmdir=rmdir + + # Remove files or directories. + alias unlink=unlink + + ## File content manipulation utilities + + # Pattern scanning and processing language. + alias awk=awk + + # Concatenate and display files. + alias cat=cat + + # Split a file into context-determined pieces. + alias csplit=csplit + + # Remove sections from each line of files. + alias cut=cut + + # Compare files line by line. + alias diff=diff + + # Wrap each input line to fit in specified width. + alias fold=fold + + # Print lines matching a pattern. + alias grep=grep + + # Output the first part of files. + alias head=head + + # Number lines of files. + alias nl=nl + + # Merge lines of files. + alias paste=paste + + # Apply a diff file to an original. + alias patch=patch + + # ptx: Produce a permuted index of file contents. + alias ptx=ptx + + # sed: Stream editor for filtering and transforming text. + alias sed=sed + + # sort: Sort lines of text files. + alias sort=sort + + # split: Split a file into pieces. + alias split=split + + # tail: Output the last part of files. + alias tail=tail + + # tr: Translate or delete characters. + alias tr=tr + + ## File checksum and encryption utilities + + # Print or check BLAKE2 message digests. + alias b2sum=b2sum + + # Print CRC checksum and byte counts. + alias cksum=cksum + + # Print or check SHA1 message digests. + alias sha1sum=sha1sum + + # Print or check SHA224 message digests. + alias sha224sum=sha224sum + + # Print or check SHA256 message digests. + alias sha256sum=sha256sum + + # Print or check SHA384 message digests. + alias sha384sum=sha384sum + + # Print or check SHA512 message digests. + alias sha512sum=sha512sum + + ## Other file utilities + + # Print or convert base32 data. + alias base32=base32 + + # Encode or decode base64 data. + alias base64=base64 + + # Encode or decode base64, base32, + alias basenc=basenc + fi diff --git a/lib/aliases/heroku/README.md b/lib/aliases/heroku/README.md new file mode 100644 index 00000000..d9fff529 --- /dev/null +++ b/lib/aliases/heroku/README.md @@ -0,0 +1,426 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…·πŸ…΄πŸ†πŸ…ΎπŸ…ΊπŸ†„ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This is a collection of aliases for the +[Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli). + +### 1. Heroku Core aliases + +#### 1.1 Heroku Access aliases + +- `hkk` Heroku CLI command shortcut. +- `hka` Add new users to your app. +- `hkau` Update existing collaborators on an team app. +- `hkh` Display help for heroku. +- `hkj` Add yourself to a team app. +- `hkl` List all the commands. +- `hkla` List who has access to an app. +- `hklg` Display recent log output. +- `hkn` Display notifications. +- `hko` List the teams that you are a member of. +- `hkoo` Open the team interface in a browser. +- `hkp` Open a psql shell to the database. +- `hkq` Remove yourself from a team app. +- `hkr` Remove users from a team app. +- `hkrg` List available regions for deployment. +- `hks` Display current status of the Heroku platform. +- `hkt` List the teams that you are a member of. +- `hku` Update the heroku CLI. +- `hkulk` Unlock an app so any team member can join. +- `hkw` Show which plugin a command is in + +#### 1.2 Heroku Add-ons aliases + +- `hkada` Attach an existing add-on resource to an app +- `hkadc` Create a new add-on resource +- `hkadd` Detach an existing add-on resource from an app +- `hkaddoc` Open an add-on's Dev Center documentation in your browser +- `hkaddown` Change add-on plan +- `hkadi` Show detailed add-on resource and attachment information +- `hkadk` Permanently destroy an add-on resource +- `hkadl` Lists your add-ons and attachments +- `hkado` Open an add-on's dashboard in your browser +- `hkadp` List all available plans for an add-on services +- `hkadr` Rename an add-on +- `hkads` List all available add-on services +- `hkadu` Change add-on plan +- `hkadw` Show provisioning status of the add-ons on the app + +#### 1.3 Heroku Apps aliases + +- `hkapc` Creates a new app +- `hkape` View app errors +- `hkapfav` List favorites apps +- `hkapfava` Favorites an app +- `hkapunfav` Unfavorite an app +- `hkapi` Show detailed app information +- `hkapj` Add yourself to a team app +- `hkapk` Permanently destroy an app +- `hkapl` List your apps +- `hkaplk` Prevent team members from joining an app +- `hkapo` Open the app in a web browser +- `hkapq` Remove yourself from a team app +- `hkapr` Rename an app +- `hkaps` Show the list of available stacks +- `hkapss` Set the stack of an app +- `hkapt` Transfer applications to another user or team +- `hkapulk` Unlock an app so any team member can join + +#### 1.4 Heroku Auth 2fa aliases + +- `hk2fa` Display the current logged in user +- `hk2fad` Disables 2fa on account +- `hk2fain` Login with your Heroku credentials +- `hk2faout` Clears local login credentials and invalidates API session +- `hk2fas` Check 2fa status +- `hk2fat` Outputs current CLI authentication token + +#### 1.5 Heroku Authorizations aliases + +- `hkauc` Create a new OAuth authorization +- `hkaui` Show an existing OAuth authorization +- `hkaul` List OAuth authorizations. +- `hkaur` Revoke OAuth authorization. +- `hkauro` Updates an OAuth authorization token. +- `hkauu` Updates an OAuth authorization + +#### 1.6 Heroku Build packs aliases + +- `hkbpac` Display autocomplete installation instructions +- `hkbpad` Add new app build-pack, inserting into list of build-packs if + necessary +- `hkbpcl` Clear all build-packs set on the app +- `hkbpi` Fetch info about a build-pack +- `hkbpl` Display the build-packs for an app +- `hkbpr` Remove a build-pack set on the app +- `hkbps` Search for build-packs +- `hkbpv` List versions of a build-pack. + +#### 1.7 Heroku Certs aliases + +- `hkca` Show ACM status for an app +- `hkcad` Add an SSL certificate to an app +- `hkcae` Enable ACM status for an app +- `hkcak` Disable ACM for an app +- `hkcar` Refresh ACM for an app +- `hkcc` Print an ordered & complete chain for a certificate +- `hkcg` Generate a key and a CSR or self-signed certificate +- `hkci` Show certificate information for an SSL certificate +- `hkck` Print the correct key for the given certificate +- `hkcl` List SSL certificates for an app +- `hkcr` Remove an SSL certificate from an app +- `hkcu` Update an SSL certificate on an app + +#### 1.8 Heroku ci aliases + +- `hkcicg` Get a CI config var +- `hkcics` Set CI config vars +- `hkcicu` Unset CI config vars +- `hkcicv` Display CI config vars +- `hkcid` Opens an interactive test debugging session with the contents + of the current directory +- `hkcie` Looks for the most recent run and returns the output of that + run +- `hkcii` Show the status of a specific test run +- `hkcil` Display the most recent CI runs for the given pipeline +- `hkcim` 'app-ci.json' is deprecated. Run this command to migrate to + app.json with an environments key +- `hkcio` Open the Dashboard version of Heroku CI +- `hkcir` Run tests against current directory +- `hkcir2` Rerun tests against current directory + +#### 1.9 Heroku config aliases + +- `hkclc` Create a new OAuth client +- `hkcli` Show details of an oauth client +- `hkclk` Delete client by ID +- `hkcll` List your OAuth clients +- `hkcls` Rotate OAuth client secret +- `hkclu` Update OAuth client. + +### 2. Heroku Configuration aliases + +- `hkcfe` Interactively edit config vars +- `hkcfg` Display a single config value for an app +- `hkcfs` Set one or more config vars +- `hkcfu` Unset one or more config vars +- `hkcfv` Display the config vars for an app + +#### 2.1 Heroku Container aliases + +- `hkct` Use containers to build and deploy Heroku apps +- `hkctin` Log in to Heroku Container Registry +- `hkctout` Log out from Heroku Container Registry +- `hkctpull` Pulls an image from an app's process type +- `hkctpush` Builds, then pushes Docker images to deploy your Heroku app +- `hkctrelease` Releases previously pushed Docker images to your Heroku + app +- `hkctrm` Remove the process type from your app +- `hkctrun` Builds, then runs the docker image locally + +#### 2.2 Heroku Domains aliases + +- `hkdo` List domains for an app +- `hkdoa` Add a domain to an app +- `hkdoc` Remove all domains from an app +- `hkdoi` Show detailed information for a domain on an app +- `hkdor` Remove a domain from an app +- `hkdou` Update a domain to use a different SSL certificate on an app +- `hkdow` Wait for domain to be active for an app + +#### 2.3 Heroku Drains aliases + +- `hkdr` Display the log drains of an app +- `hkdra` Adds a log drain to an app +- `hkdrr` Removes a log drain from an app + +#### 2.4 Heroku Dyno aliases + +- `hkdyk` Stop app dyno +- `hkdyrz` Manage dyno sizes +- `hkdyrs` Restart app dynos +- `hkdysc` Scale dyno quantity up or down +- `hkdyst` Stop app dyno + +#### 2.5 Heroku Features aliases + +- `hkfeat` List available app features +- `hkfeatd` Disables an app feature +- `hkfeate` Enables an app feature +- `hkfeati` Display information about a feature + +#### 2.6 Heroku Git aliases + +- `hkgitc` Clones a heroku app to your local machine at DIRECTORY + (defaults to app name) +- `hkgitr` Adds a git remote to an app repo + +#### 2.7 Heroku Keys aliases + +- `hkk` Display your SSH keys +- `hkka` Add an SSH key for a user +- `hkkcl` Remove all SSH keys for current user +- `hkkr` Remove an SSH key from the user + +#### 2.8 Heroku Labs aliases + +- `hklab` List experimental features +- `hklabd` Disables an experimental feature +- `hklabe` Enables an experimental feature +- `hklabi` Show feature info + +### 3. Heroku Advanced aliases + +#### 3.1 Heroku Local aliases + +- `hkloc` Run heroku app locally +- `hklocr` Run a one-off command +- `hklocv` Display node-foreman version +- `hkloclk` Prevent team members from joining an app + +#### 3.2 Heroku Maintenance aliases + +- `hkmt` Display the current maintenance status of app +- `hkmtoff` Take the app out of maintenance mode +- `hkmton` Put the app into maintenance mode + +#### 3.3 Heroku Members aliases + +- `hkmb` List members of a team +- `hkmba` Adds a user to a team +- `hkmbr` Removes a user from a team +- `hkmbs` Sets a members role in a team. + +#### 3.4 Heroku Postgres aliases + +- `hkpg` Show database information +- `hkpgb` Show table and index bloat in your database ordered by most + wasteful +- `hkpgbk` List database backups +- `hkpgbkcl` Cancel an in-progress backup or restore (default newest) +- `hkpgbkc` Capture a new backup +- `hkpgbkdl` Delete a backup +- `hkpgbkdw` Downloads database backup +- `hkpgbki` Get information about a specific backup +- `hkpgbkr` Restore a backup (default latest) to a database +- `hkpgbks` Schedule daily backups for given database +- `hkpgbksh` List backup schedule +- `hkpgbkurl` Get secret but publicly accessible URL of a backup +- `hkpgbkk` Stop daily backups +- `hkpgblk` Display queries holding locks other queries are waiting to + be released +- `hkpgc` Copy all data from source db to target +- `hkpgcpa` Add an attachment to a database using connection pooling +- `hkpgcr` Show information on credentials in the database +- `hkpgcrc` Create credential within database +- `hkpgcrd` Destroy credential within database +- `hkpgcrr` Rotate the database credentials +- `hkpgcrrd` Repair the permissions of the default credential within + database +- `hkpgcrurl` Show information on a database credential +- `hkpgdg` Run or view diagnostics report +- `hkpgi` Show database information +- `hkpgk` Kill a query +- `hkpgka` Terminates all connections for all credentials +- `hkpglks` Display queries with active locks +- `hkpglnk` Lists all databases and information on link +- `hkpglnkc` Create a link between data stores +- `hkpglnkd` Destroys a link between data stores +- `hkpgmt` heroku pg:maintenance' +- `hkpgmtr` Start maintenance +- `hkpgmtw` Set weekly maintenance window +- `hkpgo` Show 10 queries that have longest execution time in aggregate +- `hkpgp` Sets DATABASE as your DATABASE_URL +- `hkpgps` View active queries with execution time +- `hkpgpsql` Open a psql shell to the database +- `hkpgpull` Pull Heroku database into local or remote database +- `hkpgpush` Push local or remote into Heroku database +- `hkpgreset` Delete all data in DATABASE +- `hkpgset` Show your current database settings +- `hkpgsetllw` Controls whether a log message is produced when a session + waits longer than the deadlock_timeout to acquire a lock. +- `hkpgsetlmds` The duration of each completed statement will be logged + if the statement completes after the time specified by VALUE +- `hkpgsetlgs` 'log_statement' controls which SQL statements are logged +- `hkpguf` Stop a replica from following and make it a writeable + database +- `hkpgup` Unfollow a database and upgrade it to the latest stable + PostgreSQL version +- `hkpgvs` Show dead rows and whether an automatic vacuum is expected + to be triggered +- `hkpgww` Blocks until database is available + +#### 3.5 Heroku Pipelines aliases + +- `hkpipe` List pipelines you have access to +- `hkpipea` Add this app to a pipeline +- `hkpipec` Create a new pipeline +- `hkpipect` Connect a github repo to an existing pipeline +- `hkpipediff` Compares the latest release of this app to its downstream + app(s) +- `hkpipei` Show list of apps in a pipeline +- `hkpipek` Destroy a pipeline +- `hkpipeo` Open a pipeline in dashboard +- `hkpipep` Promote the latest release of this app to its downstream + app(s) +- `hkpiper` heroku pipelines:remove'Remove this app from its pipeline +- `hkpipern` Rename a pipeline +- `hkpipes` Bootstrap a new pipeline with common settings and create a + production and staging app (requires a fully formed app.json in the + repo) +- `hkpipett` Transfer ownership of a pipeline +- `hkpipeu` Update the app's stage in a pipeline + +#### 3.6 Heroku Plugins aliases + +- `hkplugs` List installed plugins +- `hkplugsi` Installs a plugin into the CLI +- `hkplugslk` Links a plugin into the CLI for development +- `hkplugsui` Removes a plugin from the CLI +- `hkplugsu` Update installed plugins + +#### 3.7 Heroku 'ps' aliases + +- `hkpsad` Disable web dyno autoscaling +- `hkps` List dynos for an app +- `hkpsae` Enable web dyno autoscaling +- `hkpsc` Copy a file from a dyno to the local filesystem +- `hkpse` Create an SSH session to a dyno +- `hkpsf` Forward traffic on a local port to a dyno +- `hkpsk` Stop app dyno +- `hkpsr` Restart app dynos +- `hkpsrs` Manage dyno sizes +- `hkpss` Stop app dyno +- `hkpssc` Scale dyno quantity up or down +- `hkpssck` Launch a SOCKS proxy into a dyno +- `hkpst` Manage dyno sizes +- `hkpsw` Wait for all dynos to be running latest version after a + release + +#### 3.8 Heroku redis aliases + +- `hkred` Gets information about redis +- `hkredcli` Opens a redis prompt +- `hkredcr` Display credentials information +- `hkredi` Gets information about redis +- `hkredkn` Set the keyspace notifications configuration +- `hkredmm` Set the key eviction policy +- `hkredmt` Manage maintenance windows +- `hkredp` Sets DATABASE as your REDIS_URL +- `hkredsr` Reset all stats covered by RESETSTAT + () +- `hkredt` Set the number of seconds to wait before killing idle + connections +- `hkredw` Wait for Redis instance to be available + +#### 3.9 Heroku Releases aliases + +- `hkrel` Display the releases for an app +- `hkreli` View detailed information for a release +- `hkrelo` View the release command output +- `hkrelr` Rollback to a previous release + +#### 3.10.1 Heroku Spaces aliases + +- `hkrvae` Enable review apps and/or settings on an existing pipeline +- `hkrvad` Disable review apps and/or settings on an existing pipeline + +#### 3.10.2 Heroku Run aliases + +- `hkrun` Run a one-off process inside a heroku dyno +- `hkrund` Run a detached dyno, where output is sent to your logs + +#### 3.10.3 Heroku Sessions aliases + +- `hksessions` List your OAuth sessions +- `hksessionsd` Delete (logout) OAuth session by ID + +#### 3.10.4 Heroku Spaces aliases + +- `hksp` List available spaces +- `hkspc` Create a new space +- `hkspd` Destroy a space +- `hkspi` Show info about a space +- `hksppi` Display the information necessary to initiate a peering + connection +- `hkspp` List peering connections for a space +- `hksppa` Accepts a pending peering request for a private space +- `hksppd` Destroys an active peering connection in a private space +- `hkspps` List dynos for a space +- `hkspr` Renames a space +- `hksptop` Show space topology +- `hkspt` Transfer a space to another team +- `hkspconf` Display the configuration information for VPN +- `hkspvc` Create VPN +- `hkspvcs` List the VPN Connections for a space +- `hkspvk` Destroys VPN in a private space +- `hkspvi` Display the information for VPN +- `hkspvu` Update VPN +- `hkspvw` Wait for VPN Connection to be created +- `hkspw` Wait for a space to be created + +#### 3.10.5 Heroku Webhooks aliases + +- `hkwh` List webhooks on an app +- `hkwha` Add a webhook to an app +- `hkwhdv` List webhook deliveries on an app +- `hkwhdvi` Info for a webhook event on an app +- `hkwhev` List webhook events on an app +- `hkwhevi` Info for a webhook event on an app +- `hkwhi` Info for a webhook on an app +- `hkwhr` Removes a webhook from an app +- `hkwhu` Updates a webhook in an app + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/heroku/heroku.aliases.sh b/lib/aliases/heroku/heroku.aliases.sh index ed3a8d16..8544839e 100644 --- a/lib/aliases/heroku/heroku.aliases.sh +++ b/lib/aliases/heroku/heroku.aliases.sh @@ -1,294 +1,1053 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…·πŸ…΄πŸ†πŸ…ΎπŸ…ΊπŸ†„ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Heroku aliases. -if command -v 'heroku' >/dev/null; then - alias hk='heroku' # hk: Heroku CLI command shortcut. - alias hka='heroku access:add' # hka: Add new users to your app. - alias hkau='heroku access:update' # hkau: Update existing collaborators on an team app. - alias hkh='heroku help' # hkh: Display help for heroku. - alias hkj='heroku join' # hkj: Add yourself to a team app. - alias hkl='heroku commands' # hkl: List all the commands. - alias hkla='heroku access' # hkla: List who has access to an app. - alias hklg='heroku logs' # hklg: Display recent log output. - alias hkn='heroku notifications' # hkn: Display notifications. - alias hko='heroku orgs' # hko: List the teams that you are a member of. - alias hkoo='heroku orgs:open' # hkoo: Open the team interface in a browser. - alias hkp='heroku psql' # hkp: Open a psql shell to the database. - alias hkq='heroku leave' # hkq: Remove yourself from a team app. - alias hkr='heroku access:remove' # hkr: Remove users from a team app. - alias hkrg='heroku regions' # hkrg: List available regions for deployment. - alias hks='heroku status' # hks: Display current status of the Heroku platform. - alias hkt='heroku teams' # hkt: List the teams that you are a member of. - alias hku='heroku update' # hku: Update the heroku CLI. - alias hkulk='heroku unlock' # hkulk: Unlock an app so any team member can join. - alias hkw='heroku which' # hkw: Show which plugin a command is in. - alias hkada='heroku addons:attach' # Attach an existing add-on resource to an app. - alias hkadc='heroku addons:create' # Create a new add-on resource. - alias hkadd='heroku addons:detach' # Detach an existing add-on resource from an app. - alias hkaddoc='heroku addons:docs' # Open an add-on's Dev Center documentation in your browser. - alias hkaddown='heroku addons:downgrade' # Change add-on plan. - alias hkadi='heroku addons:info' # Show detailed add-on resource and attachment information. - alias hkadk='heroku addons:destroy' # Permanently destroy an add-on resource. - alias hkadl='heroku addons' # Lists your add-ons and attachments. - alias hkado='heroku addons:open' # Open an add-on's dashboard in your browser. - alias hkadp='heroku addons:plans' # List all available plans for an add-on services. - alias hkadr='heroku addons:rename' # Rename an add-on. - alias hkads='heroku addons:services' # List all available add-on services. - alias hkadu='heroku addons:upgrade' # Change add-on plan. - alias hkadw='heroku addons:wait' # Show provisioning status of the add-ons on the app. - alias hkapc='heroku apps:create' # hkapc: Creates a new app. - alias hkape='heroku apps:errors' # hkape: View app errors. - alias hkapfav='heroku apps:favorites' # hkapfav: List favorites apps. - alias hkapfava='heroku apps:favorites:add' # hkapfava: Favorites an app. - alias hkapunfav='heroku apps:favorites:remove' # hkapunfav: Unfavorite an app. - alias hkapi='heroku apps:info' # hkapi: Show detailed app information. - alias hkapj='heroku apps:join' # hkapj: Add yourself to a team app. - alias hkapk='heroku apps:destroy' # hkapk: Permanently destroy an app. - alias hkapl='heroku apps' # hkapl: List your apps. - alias hkaplk='heroku apps:lock' # hkaplk: Prevent team members from joining an app. - alias hkapo='heroku apps:open' # hkapo: Open the app in a web browser. - alias hkapq='heroku apps:leave' # hkapq: Remove yourself from a team app. - alias hkapr='heroku apps:rename' # hkapr: Rename an app. - alias hkaps='heroku apps:stacks' # hkaps: Show the list of available stacks. - alias hkapss='heroku apps:stacks:set' # hkapss: Set the stack of an app. - alias hkapt='heroku apps:transfer' # hkapt: Transfer applications to another user or team. - alias hkapulk='heroku apps:unlock' # hkapulk: Unlock an app so any team member can join. - alias hk2fa='heroku auth:whoami' # hk2fa: Display the current logged in user. - alias hk2fad='heroku auth:2fa:disable' # hk2fad: Disables 2fa on account. - alias hk2fain='heroku auth:login' # hk2fain: Login with your Heroku credentials. - alias hk2faout='heroku auth:logout' # hk2faout: Clears local login credentials and invalidates API session. - alias hk2fas='heroku auth:2fa' # hk2fas: Check 2fa status. - alias hk2fat='heroku auth:token' # hk2fat: Outputs current CLI authentication token. - alias hkauc='heroku authorizations:create' # hkauc: Create a new OAuth authorization. - alias hkaui='heroku authorizations:info' # hkaui: Show an existing OAuth authorization. - alias hkaul='heroku authorizations' # hkaul: List OAuth authorizations. - alias hkaur='heroku authorizations:revoke' # hkaur: Revoke OAuth authorization. - alias hkauro='heroku authorizations:rotate' # hkauro: Updates an OAuth authorization token. - alias hkauu='heroku authorizations:update' # hkauu: Updates an OAuth authorization. - alias hkbpac='heroku autocomplete' # hkbpac: Display autocomplete installation instructions. - alias hkbpad='heroku buildpacks:add' # hkbpad: Add new app build-pack, inserting into list of build-packs if necessary. - alias hkbpcl='heroku buildpacks:clear' # hkbpcl: Clear all build-packs set on the app. - alias hkbpi='heroku buildpacks:info' # hkbpi: Fetch info about a build-pack. - alias hkbpl='heroku buildpacks' # hkbpl: Display the build-packs for an app. - alias hkbpr='heroku buildpacks:remove' # hkbpr: Remove a build-pack set on the app. - alias hkbps='heroku buildpacks:search' # hkbps: Search for build-packs. - alias hkbpv='heroku buildpacks:versions' # hkbpv: List versions of a build-pack. - alias hkca='heroku certs:auto' # hkca: Show ACM status for an app. - alias hkcad='heroku certs:add' # hkcad: Add an SSL certificate to an app. - alias hkcae='heroku certs:auto:enable' # hkcae: Enable ACM status for an app. - alias hkcak='heroku certs:auto:disable' # hkcak: Disable ACM for an app. - alias hkcar='heroku certs:auto:refresh' # hkcar: Refresh ACM for an app. - alias hkcc='heroku certs:chain' # hkcc: Print an ordered & complete chain for a certificate. - alias hkcg='heroku certs:generate' # hkcg: Generate a key and a CSR or self-signed certificate. - alias hkci='heroku certs:info' # hkci: Show certificate information for an SSL certificate. - alias hkck='heroku certs:key' # hkck: Print the correct key for the given certificate. - alias hkcl='heroku certs' # hkcl: List SSL certificates for an app. - alias hkcr='heroku certs:remove' # hkcr: Remove an SSL certificate from an app. - alias hkcu='heroku certs:update' # hkcu: Update an SSL certificate on an app. - alias hkcicg='heroku ci:config:get' # hkcicg: Get a CI config var. - alias hkcics='heroku ci:config:set' # hkcics: Set CI config vars. - alias hkcicu='heroku ci:config:unset' # hkcicu: Unset CI config vars. - alias hkcicv=' ci:config' # hkcicv: Display CI config vars. - alias hkcid='heroku ci:debug' # hkcid: Opens an interactive test debugging session with the contents of the current directory. - alias hkcie='heroku ci:last' # hkcie: Looks for the most recent run and returns the output of that run. - alias hkcii='heroku ci:info' # hkcii: Show the status of a specific test run. - alias hkcil='heroku ci' # hkcil: Display the most recent CI runs for the given pipeline. - alias hkcim='heroku ci:migrate-manifest' # hkcim: 'app-ci.json' is deprecated. Run this command to migrate to app.json with an environments key. - alias hkcio='heroku ci:open' # hkcio: Open the Dashboard version of Heroku CI. - alias hkcir='heroku ci:run' # hkcir: Run tests against current directory. - alias hkcir2='heroku ci:rerun' # hkcir2: Rerun tests against current directory. - alias hkclc='heroku clients:create' # hkclc: Create a new OAuth client. - alias hkcli='heroku clients:info' # hkcli: Show details of an oauth client. - alias hkclk='heroku clients:destroy' # hkclk: Delete client by ID. - alias hkcll='heroku clients' # hkcll: List your OAuth clients. - alias hkcls='heroku clients:rotate' # hkcls: Rotate OAuth client secret. - alias hkclu='heroku clients:update' # hkclu: Update OAuth client. - alias hkcfe='heroku config:edit' # hkcfe: Interactively edit config vars. - alias hkcfg='heroku config:get' # hkcfg: Display a single config value for an app. - alias hkcfs='heroku config:set' # hkcfs: Set one or more config vars. - alias hkcfu='heroku config:unset' # hkcfu: Unset one or more config vars. - alias hkcfv='heroku config' # hkcfv: Display the config vars for an app. - alias hkct='heroku container' # hkct: Use containers to build and deploy Heroku apps. - alias hkctin='heroku container:login' # hkctin: Log in to Heroku Container Registry. - alias hkctout='heroku container:logout' # hkctout: Log out from Heroku Container Registry. - alias hkctpull='heroku container:pull' # hkctpull: Pulls an image from an app's process type. - alias hkctpush='heroku container:push' # hkctpush: Builds, then pushes Docker images to deploy your Heroku app. - alias hkctrelease='heroku container:release' # hkctrelease: Releases previously pushed Docker images to your Heroku app. - alias hkctrm='heroku container:rm' # hkctrm: Remove the process type from your app. - alias hkctrun='heroku container:run' # hkctrun: Builds, then runs the docker image locally. - alias hkdo='heroku domains' # hkdo: List domains for an app. - alias hkdoa='heroku domains:add' # hkdoa: Add a domain to an app. - alias hkdoc='heroku domains:clear' # hkdoc: Remove all domains from an app. - alias hkdoi='heroku domains:info' # hkdoi: Show detailed information for a domain on an app. - alias hkdor='heroku domains:remove' # hkdor: Remove a domain from an app. - alias hkdou='heroku domains:update' # hkdou: Update a domain to use a different SSL certificate on an app. - alias hkdow='heroku domains:wait' # hkdow: Wait for domain to be active for an app. - alias hkdr='heroku drains' # hkdr: Display the log drains of an app. - alias hkdra='heroku drains:add' # hkdra: Adds a log drain to an app. - alias hkdrr='heroku drains:remove' # hkdrr: Removes a log drain from an app. - alias hkdyk='heroku dyno:kill' # hkdyk: Kill a dyno. - alias hkdyrz='heroku dyno:resize' # hkdyrz: Manage dyno sizes. - alias hkdyrs='heroku dyno:restart' # hkdyrs: Restart app dynos. - alias hkdysc='heroku dyno:scale' # hkdysc: Scale dyno quantity up or down. - alias hkdyst='heroku dyno:stop' # hkdyst: Stop app dyno. - alias hkfeat='heroku features' # hkfeat: List available app features. - alias hkfeatd='heroku features:disable' # hkfeatd: Disables an app feature. - alias hkfeate='heroku features:enable' # hkfeate: Enables an app feature. - alias hkfeati='heroku features:info' # hkfeati: Display information about a feature. - alias hkgitc='heroku git:clone' # Clones a heroku app to your local machine at DIRECTORY (defaults to app name). - alias hkgitr='heroku git:remote' # Adds a git remote to an app repo. - alias hkk='heroku keys' # Display your SSH keys. - alias hkka='heroku keys:add' # Add an SSH key for a user. - alias hkkcl='heroku keys:clear' # Remove all SSH keys for current user. - alias hkkr='heroku keys:remove' # Remove an SSH key from the user. - alias hklab='heroku labs' # hklab: List experimental features. - alias hklabd='heroku labs:disable' # hklabd: Disables an experimental feature. - alias hklabe='heroku labs:enable' # hklabe: Enables an experimental feature. - alias hklabi='heroku labs:info' # hklabi: Show feature info. - alias hkloc='heroku local' # hkloc: Run heroku app locally. - alias hklocr='heroku local:run' # hklocr: Run a one-off command. - alias hklocv='heroku local:version' # hklocv: Display node-foreman version. - alias hkloclk='heroku lock' # hkloclk: Prevent team members from joining an app. - alias hkmt='heroku maintenance' # hkmt: Display the current maintenance status of app. - alias hkmtoff='heroku maintenance:off' # hkmtoff: Take the app out of maintenance mode. - alias hkmton='heroku maintenance:on' # hkmton: Put the app into maintenance mode. - alias hkmb='heroku members' # hkmb: List members of a team. - alias hkmba='heroku members:add' # hkmba: Adds a user to a team. - alias hkmbr='heroku members:remove' # hkmbr: Removes a user from a team. - alias hkmbs='heroku members:set' # hkmbs: Sets a members role in a team. - alias hkpg='heroku pg' # hkpg: Show database information. - alias hkpgb='heroku pg:bloat' # hkpgb: Show table and index bloat in your database ordered by most wasteful. - alias hkpgbk='heroku pg:backups' # hkpgbk: List database backups. - alias hkpgbkcl='heroku pg:backups:cancel' # hkpgbkcl: Cancel an in-progress backup or restore (default newest). - alias hkpgbkc='heroku pg:backups:capture' # hkpgbkc: Capture a new backup. - alias hkpgbkdl='heroku pg:backups:delete' # hkpgbkdl: Delete a backup. - alias hkpgbkdw='heroku pg:backups:download' # hkpgbkdw: Downloads database backup. - alias hkpgbki='heroku pg:backups:info' # hkpgbki: Get information about a specific backup. - alias hkpgbkr='heroku pg:backups:restore' # hkpgbkr: Restore a backup (default latest) to a database. - alias hkpgbks='heroku pg:backups:schedule' # hkpgbks: Schedule daily backups for given database. - alias hkpgbksh='heroku pg:backups:schedules' # hkpgbksh: List backup schedule. - alias hkpgbkurl='heroku pg:backups:url' # hkpgbkurl: Get secret but publicly accessible URL of a backup. - alias hkpgbkk='heroku pg:backups:unschedule' # hkpgbkk: Stop daily backups. - alias hkpgblk='heroku pg:blocking' # hkpgblk: Display queries holding locks other queries are waiting to be released. - alias hkpgc='heroku pg:copy' # hkpgc: Copy all data from source db to target. - alias hkpgcpa='heroku pg:connection-pooling:attach' # hkpgcpa: Add an attachment to a database using connection pooling. - alias hkpgcr='heroku pg:credentials' # hkpgcr: Show information on credentials in the database. - alias hkpgcrc='heroku pg:credentials:create' # hkpgcrc: Create credential within database. - alias hkpgcrd='heroku pg:credentials:destroy' # hkpgcrd: Destroy credential within database. - alias hkpgcrr='heroku pg:credentials:rotate' # hkpgcrr: Rotate the database credentials. - alias hkpgcrrd='heroku pg:credentials:repair-default' # hkpgcrrd: Repair the permissions of the default credential within database. - alias hkpgcrurl='heroku pg:credentials:url' # hkpgcrurl: Show information on a database credential. - alias hkpgdg='heroku pg:diagnose' # hkpgdg: Run or view diagnostics report. - alias hkpgi='heroku pg:info' # hkpgi: Show database information. - alias hkpgk='heroku pg:kill' # hkpgk: Kill a query. - alias hkpgka='heroku pg:killall' # hkpgka: Terminates all connections for all credentials. - alias hkpglks='heroku pg:locks' # hkpglks: Display queries with active locks. - alias hkpglnk='heroku pg:links' # hkpglnk: Lists all databases and information on link. - alias hkpglnkc='heroku pg:links:create' # hkpglnkc: Create a link between data stores. - alias hkpglnkd='heroku pg:links:destroy' # hkpglnkd: Destroys a link between data stores. - alias hkpgmt='heroku pg:maintenance' # hkpgmt: Show current maintenance information. - alias hkpgmtr='heroku pg:maintenance:run' # hkpgmtr: Start maintenance. - alias hkpgmtw='heroku pg:maintenance:window' # hkpgmtw: Set weekly maintenance window. - alias hkpgo='heroku pg:outliers' # hkpgo: Show 10 queries that have longest execution time in aggregate. - alias hkpgp='heroku pg:promote' # hkpgp: Sets DATABASE as your DATABASE_URL. - alias hkpgps='heroku pg:ps' # hkpgps: View active queries with execution time. - alias hkpgpsql='heroku pg:psql' # hkpgpsql: Open a psql shell to the database. - alias hkpgpull='heroku pg:pull' # hkpgpull: Pull Heroku database into local or remote database. - alias hkpgpush='heroku pg:push' # hkpgpush: Push local or remote into Heroku database. - alias hkpgreset='heroku pg:reset' # hkpgreset: Delete all data in DATABASE. - alias hkpgset='heroku pg:settings' # hkpgreset: Show your current database settings. - alias hkpgsetllw='heroku pg:settings:log-lock-waits' # hkpgsetllw: Controls whether a log message is produced when a session waits longer than the deadlock_timeout to acquire a lock. - alias hkpgsetlmds='heroku pg:settings:log-min-duration-statement' # hkpgsetlmds: The duration of each completed statement will be logged if the statement completes after the time specified by VALUE. - alias hkpgsetlgs='heroku pg:settings:log-statement' # hkpgsetlgs: 'log_statement' controls which SQL statements are logged. - alias hkpguf='heroku pg:unfollow' # hkpguf: Stop a replica from following and make it a writeable database. - alias hkpgup='heroku pg:upgrade' # hkpgup: Unfollow a database and upgrade it to the latest stable PostgreSQL version. - alias hkpgvs='heroku pg:vacuum-stats' # hkpgvs: Show dead rows and whether an automatic vacuum is expected to be triggered. - alias hkpgww='heroku pg:wait' # hkpgww: Blocks until database is available. - alias hkpipe='heroku pipelines' # List pipelines you have access to. - alias hkpipea='heroku pipelines:add' # Add this app to a pipeline. - alias hkpipec='heroku pipelines:create' # Create a new pipeline. - alias hkpipect='heroku pipelines:connect' # Connect a github repo to an existing pipeline. - alias hkpipediff='heroku pipelines:diff' # Compares the latest release of this app to its downstream app(s). - alias hkpipei='heroku pipelines:info' # Show list of apps in a pipeline. - alias hkpipek='heroku pipelines:destroy' # Destroy a pipeline. - alias hkpipeo='heroku pipelines:open' # Open a pipeline in dashboard. - alias hkpipep='heroku pipelines:promote' # Promote the latest release of this app to its downstream app(s). - alias hkpiper='heroku pipelines:remove' # Remove this app from its pipeline. - alias hkpipern='heroku pipelines:rename' # Rename a pipeline. - alias hkpipes='heroku pipelines:setup' # Bootstrap a new pipeline with common settings and create a production and staging app (requires a fully formed app.json in the repo). - alias hkpipett='heroku pipelines:transfer' # Transfer ownership of a pipeline. - alias hkpipeu='heroku pipelines:update' # Update the app's stage in a pipeline. - alias hkplugs='heroku plugins' # hkplugs: List installed plugins. - alias hkplugsi='heroku plugins:install' # hkplugsi: Installs a plugin into the CLI. - alias hkplugslk='heroku plugins:link' # hkplugslk: Links a plugin into the CLI for development. - alias hkplugsui='heroku plugins:uninstall' # hkplugsui: Removes a plugin from the CLI. - alias hkplugsu='heroku plugins:update' # hkplugsu: Update installed plugins. - alias hkpsad='heroku ps:autoscale:disable' # hkpsad: Disable web dyno autoscaling. - alias hkps='heroku ps' # hkps: List dynos for an app. - alias hkpsae='heroku ps:autoscale:enable' # hkpsae: Enable web dyno autoscaling. - alias hkpsc='heroku ps:copy' # hkpsc: Copy a file from a dyno to the local filesystem. - alias hkpse='heroku ps:exec' # hkpse: Create an SSH session to a dyno. - alias hkpsf='heroku ps:forward' # hkpsf: Forward traffic on a local port to a dyno. - alias hkpsk='heroku ps:kill' # hkpsk: Stop app dyno. - alias hkpsr='heroku ps:restart' # hkpsr: Restart app dynos. - alias hkpsrs='heroku ps:resize' # hkpsrs: Manage dyno sizes. - alias hkpss='heroku ps:stop' # hkpss: Stop app dyno. - alias hkpssc='heroku ps:scale' # hkpssc: Scale dyno quantity up or down. - alias hkpssck='heroku ps:socks' # hkpssck: Launch a SOCKS proxy into a dyno. - alias hkpst='heroku ps:type' # hkpst: Manage dyno sizes. - alias hkpsw='heroku ps:wait' # hkpsw: Wait for all dynos to be running latest version after a release. - alias hkred='heroku redis' # hkred: Gets information about redis. - alias hkredcli='heroku redis:cli' # hkredcli: Opens a redis prompt. - alias hkredcr='heroku redis:credentials' # hkredcr: Display credentials information. - alias hkredi='heroku redis:info' # hkredi: Gets information about redis. - alias hkredkn='heroku redis:keyspace-notifications' # hkredkn: Set the keyspace notifications configuration. - alias hkredmm='heroku redis:maxmemory' # hkredmm: Set the key eviction policy. - alias hkredmt='heroku redis:maintenance' # hkredmt: Manage maintenance windows. - alias hkredp='heroku redis:promote' # hkredp: Sets DATABASE as your REDIS_URL. - alias hkredsr='heroku redis:stats-reset' # hkredsr: Reset all stats covered by RESETSTAT (). - alias hkredt='heroku redis:timeout' # hkredt: Set the number of seconds to wait before killing idle connections. - alias hkredw='heroku redis:wait' # hkredw: Wait for Redis instance to be available. - alias hkrel='heroku releases' # hkrel: Display the releases for an app. - alias hkreli='heroku releases:info' # hkreli: View detailed information for a release. - alias hkrelo='heroku releases:output' # hkrelo: View the release command output. - alias hkrelr='heroku releases:rollback' # hkrelr: Rollback to a previous release. - alias hkrvae='heroku reviewapps:enable' # hkrvae: Enable review apps and/or settings on an existing pipeline. - alias hkrvad='heroku reviewapps:disable' # hkrvad: Disable review apps and/or settings on an existing pipeline. - alias hkrun='heroku run' # hkrun: Run a one-off process inside a heroku dyno. - alias hkrund='heroku run:detached' # hkrund: Run a detached dyno, where output is sent to your logs. - alias hksessions='heroku sessions' # hksessions: List your OAuth sessions. - alias hksessionsd='heroku sessions:destroy' # hksessionsd: Delete (logout) OAuth session by ID. - alias hksp='heroku spaces' # hksp: List available spaces. - alias hkspc='heroku spaces:create' # hkspc: Create a new space. - alias hkspd='heroku spaces:destroy' # hkspd: Destroy a space. - alias hkspi='heroku spaces:info' # hkspi: Show info about a space. - alias hksppi='heroku spaces:peering:info' # hksppi: Display the information necessary to initiate a peering connection. - alias hkspp='heroku spaces:peerings' # hkspp: List peering connections for a space. - alias hksppa='heroku spaces:peerings:accept' # hksppa: Accepts a pending peering request for a private space. - alias hksppd='heroku spaces:peerings:destroy' # hksppd: Destroys an active peering connection in a private space. - alias hkspps='heroku spaces:ps' # hkspps: List dynos for a space. - alias hkspr='heroku spaces:rename' # hkspr: Renames a space. - alias hksptop='heroku spaces:topology' # hksptop: Show space topology. - alias hkspt='heroku spaces:transfer' # hkspt: Transfer a space to another team. - alias hkspconf='heroku spaces:vpn:config' # hkspconf: Display the configuration information for VPN. - alias hkspvc='heroku spaces:vpn:connect' # hkspvc: Create VPN. - alias hkspvcs='heroku spaces:vpn:connections' # hkspvcs: List the VPN Connections for a space. - alias hkspvk='heroku spaces:vpn:destroy' # hkspvk: Destroys VPN in a private space. - alias hkspvi='heroku spaces:vpn:info' # hkspvi: Display the information for VPN. - alias hkspvu='heroku spaces:vpn:update' # hkspvu: Update VPN. - alias hkspvw='heroku spaces:vpn:wait' # hkspvw: Wait for VPN Connection to be created. - alias hkspw='heroku spaces:wait' # hkspw: Wait for a space to be created. - alias hkwh='heroku webhooks' # hkwh: List webhooks on an app. - alias hkwha='heroku webhooks:add' # hkwha: Add a webhook to an app. - alias hkwhdv='heroku webhooks:deliveries' # hkwhdv: List webhook deliveries on an app. - alias hkwhdvi='heroku webhooks:deliveries:info' # hkwhdvi: Info for a webhook event on an app. - alias hkwhev='heroku webhooks:events' # hkwhev: List webhook events on an app. - alias hkwhevi='heroku webhooks:events:info' # hkwhevi: Info for a webhook event on an app. - alias hkwhi='heroku webhooks:info' # hkwhi: Info for a webhook on an app. - alias hkwhr='heroku webhooks:remove' # hkwhr: Removes a webhook from an app. - alias hkwhu='heroku webhooks:update' # hkwhu: Updates a webhook in an app. +if command -v heroku &>/dev/null; then + # Sections: + # + # 1. Heroku aliases. + # 1.1 Heroku Access aliases. + # 1.2 Heroku Addons aliases. + # 1.3 Heroku Apps aliases. + # 1.4 Heroku Auth aliases. + # 1.5 Heroku Authorizations aliases. + # 1.6 Heroku Authorizations aliases. + # 1.7 Heroku Certs aliases. + # 1.8 Heroku ci aliases. + # 1.9 Heroku config aliases. + # + # 2. Heroku Container aliases. + # 2.1 Heroku Domains aliases. + # 2.2 Heroku Drains aliases. + # 2.3 Heroku Dyno aliases. + # 2.4 Heroku Features aliases. + # 2.5 Heroku Git aliases. + # 2.6 Heroku Keys aliases. + # 2.7 Heroku Maintenance aliases. + # 2.8 Heroku Members aliases. + # 2.9 Heroku pg aliases. + # + # 3. Heroku Pipelines aliases. + # 3.1 Heroku ps aliases. + # 3.2 Heroku redis aliases. + # 3.3 Heroku Spaces aliases. + # 3.4 Heroku Webhooks aliases. + # + ## ------------------------------------------------------------------ + ## 1. Heroku Core aliases + ## ------------------------------------------------------------------ + + ## ------------------------------------------------------------------ + ## 1.1 Heroku Access aliases. + ## ------------------------------------------------------------------ + + # hk: Heroku CLI command shortcut. + alias hkk='heroku' + + # hka: Add new users to your app. + alias hka='heroku access:add' + + # hkau: Update existing collaborators on an team app. + alias hkau='heroku access:update' + + # hkh: Display help for heroku. + alias hkh='heroku help' + + # hkj: Add yourself to a team app. + alias hkj='heroku join' + + # hkl: List all the commands. + alias hkl='heroku commands' + + # hkla: List who has access to an app. + alias hkla='heroku access' + + # hklg: Display recent log output. + alias hklg='heroku logs' + + # hkn: Display notifications. + alias hkn='heroku notifications' + + # hko: List the teams that you are a member of. + alias hko='heroku orgs' + + # hkoo: Open the team interface in a browser. + alias hkoo='heroku orgs:open' + + # hkp: Open a psql shell to the database. + alias hkp='heroku psql' + + # hkq: Remove yourself from a team app. + alias hkq='heroku leave' + + # hkr: Remove users from a team app. + alias hkr='heroku access:remove' + + # hkrg: List available regions for deployment. + alias hkrg='heroku regions' + + # hks: Display current status of the Heroku platform. + alias hks='heroku status' + + # hkt: List the teams that you are a member of. + alias hkt='heroku teams' + + # hku: Update the heroku CLI. + alias hku='heroku update' + + # hkulk: Unlock an app so any team member can join. + alias hkulk='heroku unlock' + + # hkw: Show which plugin a command is in. + alias hkw='heroku which' + + ## ------------------------------------------------------------------ + ## 1.2 Heroku Add-ons aliases + ## ------------------------------------------------------------------ + + # Attach an existing add-on resource to an app. + alias hkada='heroku addons:attach' + + # Create a new add-on resource. + alias hkadc='heroku addons:create' + + # Detach an existing add-on resource from an app. + alias hkadd='heroku addons:detach' + + # Open an add-on's Dev Center documentation in your browser. + alias hkaddoc='heroku addons:docs' + + # Change add-on plan. + alias hkaddown='heroku addons:downgrade' + + # Show detailed add-on resource and attachment information. + alias hkadi='heroku addons:info' + + # Permanently destroy an add-on resource. + alias hkadk='heroku addons:destroy' + + # Lists your add-ons and attachments. + alias hkadl='heroku addons' + + # Open an add-on's dashboard in your browser. + alias hkado='heroku addons:open' + + # List all available plans for an add-on services. + alias hkadp='heroku addons:plans' + + # Rename an add-on. + alias hkadr='heroku addons:rename' + + # List all available add-on services. + alias hkads='heroku addons:services' + + # Change add-on plan. + alias hkadu='heroku addons:upgrade ' + + # Show provisioning status of the add-ons on the app. + alias hkadw='heroku addons:wait' + + ## ------------------------------------------------------------------ + ## 1.3 Heroku Apps aliases + ## ------------------------------------------------------------------ + + # hkapc: Creates a new app. + alias hkapc='heroku apps:create' + + # hkape: View app errors. + alias hkape='heroku apps:errors' + + # hkapfav: List favorites apps. + alias hkapfav='heroku apps:favorites' + + # hkapfava: Favorites an app. + alias hkapfava='heroku apps:favorites:add' + + # hkapunfav: Unfavorite an app. + alias hkapunfav='heroku apps:favorites:remove' + + # hkapi: Show detailed app information. + alias hkapi='heroku apps:info' + + # hkapj: Add yourself to a team app. + alias hkapj='heroku apps:join' + + # hkapk: Permanently destroy an app. + alias hkapk='heroku apps:destroy' + + # hkapl: List your apps. + alias hkapl='heroku apps' + + # hkaplk: Prevent team members from joining an app. + alias hkaplk='heroku apps:lock' + + # hkapo: Open the app in a web browser. + alias hkapo='heroku apps:open' + + # hkapq: Remove yourself from a team app. + alias hkapq='heroku apps:leave' + + # hkapr: Rename an app. + alias hkapr='heroku apps:rename' + + # hkaps: Show the list of available stacks. + alias hkaps='heroku apps:stacks' + + # hkapss: Set the stack of an app. + alias hkapss='heroku apps:stacks:set' + + # hkapt: Transfer applications to another user or team. + alias hkapt='heroku apps:transfer' + + # hkapulk: Unlock an app so any team member can join. + alias hkapulk='heroku apps:unlock' + + ## ------------------------------------------------------------------ + ## 1.4 Heroku Auth 2fa aliases + ## ------------------------------------------------------------------ + + # hk2fa: Display the current logged in user. + alias hk2fa='heroku auth:whoami' + + # hk2fad: Disables 2fa on account. + alias hk2fad='heroku auth:2fa:disable' + + # hk2fain: Login with your Heroku credentials. + alias hk2fain='heroku auth:login' + + # hk2faout: Clears local login credentials and invalidates API session + alias hk2faout='heroku auth:logout' + + # hk2fas: Check 2fa status. + alias hk2fas='heroku auth:2fa' + + # hk2fat: Outputs current CLI authentication token. + alias hk2fat='heroku auth:token' + + ## ------------------------------------------------------------------ + ## 1.5 Heroku Authorizations aliases + ## ------------------------------------------------------------------ + + # hkauc: Create a new OAuth authorization. + alias hkauc='heroku authorizations:create' + + # hkaui: Show an existing OAuth authorization. + alias hkaui='heroku authorizations:info' + + # hkaul: List OAuth authorizations. + alias hkaul='heroku authorizations' + + # hkaur: Revoke OAuth authorization. + alias hkaur='heroku authorizations:revoke' + + # hkauro: Updates an OAuth authorization token. + alias hkauro='heroku authorizations:rotate' + + # hkauu: Updates an OAuth authorization. + alias hkauu='heroku authorizations:update' + + ## ------------------------------------------------------------------ + ## 1.6 Heroku Build packs aliases + ## ------------------------------------------------------------------ + + # hkbpac: Display autocomplete installation instructions. + alias hkbpac='heroku autocomplete' + + # hkbpad: Add new app build-pack, inserting into list of build-packs + # if necessary. + alias hkbpad='heroku buildpacks:add' + + # hkbpcl: Clear all build-packs set on the app. + alias hkbpcl='heroku buildpacks:clear' + + # hkbpi: Fetch info about a build-pack. + alias hkbpi='heroku buildpacks:info' + + # hkbpl: Display the build-packs for an app. + alias hkbpl='heroku buildpacks' + + # hkbpr: Remove a build-pack set on the app. + alias hkbpr='heroku buildpacks:remove' + + # hkbps: Search for build-packs. + alias hkbps='heroku buildpacks:search' + + # hkbpv: List versions of a build-pack. + alias hkbpv='heroku buildpacks:versions' + + ## ------------------------------------------------------------------ + ## 1.7 Heroku Certs aliases + ## ------------------------------------------------------------------ + + # hkca: Show ACM status for an app. + alias hkca='heroku certs:auto' + + # hkcad: Add an SSL certificate to an app. + alias hkcad='heroku certs:add' + + # hkcae: Enable ACM status for an app. + alias hkcae='heroku certs:auto:enable' + + # hkcak: Disable ACM for an app. + alias hkcak='heroku certs:auto:disable' + + # hkcar: Refresh ACM for an app. + alias hkcar='heroku certs:auto:refresh' + + # hkcc: Print an ordered & complete chain for a certificate. + alias hkcc='heroku certs:chain' + + # hkcg: Generate a key and a CSR or self-signed certificate. + alias hkcg='heroku certs:generate' + + # hkci: Show certificate information for an SSL certificate. + alias hkci='heroku certs:info' + + # hkck: Print the correct key for the given certificate. + alias hkck='heroku certs:key' + + # hkcl: List SSL certificates for an app. + alias hkcl='heroku certs' + + # hkcr: Remove an SSL certificate from an app. + alias hkcr='heroku certs:remove' + + # hkcu: Update an SSL certificate on an app. + alias hkcu='heroku certs:update' + + ## ------------------------------------------------------------------ + ## 1.8 Heroku ci aliases + ## ------------------------------------------------------------------ + + # hkcicg: Get a CI config var. + alias hkcicg='heroku ci:config:get' + + # hkcics: Set CI config vars. + alias hkcics='heroku ci:config:set' + + # hkcicu: Unset CI config vars. + alias hkcicu='heroku ci:config:unset' + + # hkcicv: Display CI config vars. + alias hkcicv=' ci:config' + + # hkcid: Opens an interactive test debugging session with the contents + # of the current directory. + alias hkcid='heroku ci:debug' + + # hkcie: Looks for the most recent run and returns the output of that + # run. + alias hkcie='heroku ci:last' + + # hkcii: Show the status of a specific test run. + alias hkcii='heroku ci:info' + + # hkcil: Display the most recent CI runs for the given pipeline. + alias hkcil='heroku ci' + + # hkcim: 'app-ci.json' is deprecated. Run this command to migrate to + # app.json with an environments key. + alias hkcim='heroku ci:migrate-manifest' + + # hkcio: Open the Dashboard version of Heroku CI. + alias hkcio='heroku ci:open' + + # hkcir: Run tests against current directory. + alias hkcir='heroku ci:run' + + # hkcir2: Rerun tests against current directory. + alias hkcir2='heroku ci:rerun' + + ## ------------------------------------------------------------------ + ## 1.9 Heroku config aliases + ## ------------------------------------------------------------------ + + # hkclc: Create a new OAuth client. + alias hkclc='heroku clients:create' + + # hkcli: Show details of an oauth client. + alias hkcli='heroku clients:info' + + # hkclk: Delete client by ID. + alias hkclk='heroku clients:destroy' + + # hkcll: List your OAuth clients. + alias hkcll='heroku clients' + + # hkcls: Rotate OAuth client secret. + alias hkcls='heroku clients:rotate' + + # hkclu: Update OAuth client. + alias hkclu='heroku clients:update' + + ## ------------------------------------------------------------------ + ## 2. Heroku Configuration aliases + ## ------------------------------------------------------------------ + + # hkcfe: Interactively edit config vars. + alias hkcfe='heroku config:edit' + + # hkcfg: Display a single config value for an app. + alias hkcfg='heroku config:get' + + # hkcfs: Set one or more config vars. + alias hkcfs='heroku config:set' + + # hkcfu: Unset one or more config vars. + alias hkcfu='heroku config:unset' + + # hkcfv: Display the config vars for an app. + alias hkcfv='heroku config' + + ## ------------------------------------------------------------------ + ## 2.1 Heroku Container aliases + ## ------------------------------------------------------------------ + + # hkct: Use containers to build and deploy Heroku apps. + alias hkct='heroku container' + + # hkctin: Log in to Heroku Container Registry. + alias hkctin='heroku container:login' + + # hkctout: Log out from Heroku Container Registry. + alias hkctout='heroku container:logout' + + # hkctpull: Pulls an image from an app's process type. + alias hkctpull='heroku container:pull' + + # hkctpush: Builds, then pushes Docker images to deploy your Heroku + # app. + alias hkctpush='heroku container:push' + + # hkctrelease: Releases previously pushed Docker images to your Heroku + # app. + alias hkctrelease='heroku container:release' + + # hkctrm: Remove the process type from your app. + alias hkctrm='heroku container:rm' + + # hkctrun: Builds, then runs the docker image locally. + alias hkctrun='heroku container:run' + + ## ------------------------------------------------------------------ + ## 2.2 Heroku Domains aliases + ## ------------------------------------------------------------------ + + # hkdo: List domains for an app. + alias hkdo='heroku domains' + + # hkdoa: Add a domain to an app. + alias hkdoa='heroku domains:add' + + # hkdoc: Remove all domains from an app. + alias hkdoc='heroku domains:clear' + + # hkdoi: Show detailed information for a domain on an app. + alias hkdoi='heroku domains:info' + + # hkdor: Remove a domain from an app. + alias hkdor='heroku domains:remove' + + # hkdou: Update a domain to use a different SSL certificate on an app. + alias hkdou='heroku domains:update' + + # hkdow: Wait for domain to be active for an app. + alias hkdow='heroku domains:wait' + + ## ------------------------------------------------------------------ + ## 2.3 Heroku Drains aliases + ## ------------------------------------------------------------------ + + # hkdr: Display the log drains of an app. + alias hkdr='heroku drains' + + # hkdra: Adds a log drain to an app. + alias hkdra='heroku drains:add' + + # hkdrr: Removes a log drain from an app. + alias hkdrr='heroku drains:remove' + + ## ------------------------------------------------------------------ + ## 2.4 Heroku Dyno aliases + ## ------------------------------------------------------------------ + + # hkdyk: Stop app dyno. + alias hkdyk='heroku dyno:kill' + + # hkdyrz: Manage dyno sizes. + alias hkdyrz='heroku dyno:resize' + + # hkdyrs: Restart app dynos. + alias hkdyrs='heroku dyno:restart' + + # hkdysc: Scale dyno quantity up or down. + alias hkdysc='heroku dyno:scale' + + # hkdyst: Stop app dyno. + alias hkdyst='heroku dyno:stop' + + ## ------------------------------------------------------------------ + ## 2.5 Heroku Features aliases + ## ------------------------------------------------------------------ + + # hkfeat: List available app features. + alias hkfeat='heroku features' + + # hkfeatd: Disables an app feature. + alias hkfeatd='heroku features:disable' + + # hkfeate: Enables an app feature. + alias hkfeate='heroku features:enable' + + # hkfeati: Display information about a feature. + alias hkfeati='heroku features:info' + + ## ------------------------------------------------------------------ + ## 2.6 Heroku Git aliases + ## ------------------------------------------------------------------ + + # Clones a heroku app to your local machine at DIRECTORY + # (defaults to app name). + alias hkgitc='heroku git:clone' + + # Adds a git remote to an app repo. + alias hkgitr='heroku git:remote' + + ## ------------------------------------------------------------------ + ## 2.7 Heroku Keys aliases + ## ------------------------------------------------------------------ + + # Display your SSH keys. + alias hkk='heroku keys' + + # Add an SSH key for a user. + alias hkka='heroku keys:add' + + # Remove all SSH keys for current user. + alias hkkcl='heroku keys:clear' + + # Remove an SSH key from the user. + alias hkkr='heroku keys:remove' + + ## ------------------------------------------------------------------ + ## 2.8 Heroku Labs aliases + ## ------------------------------------------------------------------ + + # hklab: List experimental features. + alias hklab='heroku labs' + + # hklabd: Disables an experimental feature. + alias hklabd='heroku labs:disable' + + # hklabe: Enables an experimental feature. + alias hklabe='heroku labs:enable' + + # hklabi: Show feature info. + alias hklabi='heroku labs:info' + + ## ------------------------------------------------------------------ + ## 3. Heroku Advanced aliases + ## ------------------------------------------------------------------ + + ## ------------------------------------------------------------------ + ## 3.1 Heroku Local aliases + ## ------------------------------------------------------------------ + + # hkloc: Run heroku app locally. + alias hkloc='heroku local' + + # hklocr: Run a one-off command. + alias hklocr='heroku local:run' + + # hklocv: Display node-foreman version. + alias hklocv='heroku local:version' + + # hkloclk: Prevent team members from joining an app. + alias hkloclk='heroku lock' + + ## ------------------------------------------------------------------ + ## 3.2 Heroku Maintenance aliases + ## ------------------------------------------------------------------ + + # hkmt: Display the current maintenance status of app. + alias hkmt='heroku maintenance' + + # hkmtoff: Take the app out of maintenance mode. + alias hkmtoff='heroku maintenance:off' + + # hkmton: Put the app into maintenance mode. + alias hkmton='heroku maintenance:on' + + ## ------------------------------------------------------------------ + ## 3.3 Heroku Members aliases + ## ------------------------------------------------------------------ + + # hkmb: List members of a team. + alias hkmb='heroku members' + + # hkmba: Adds a user to a team. + alias hkmba='heroku members:add' + + # hkmbr: Removes a user from a team. + alias hkmbr='heroku members:remove' + + # hkmbs: Sets a members role in a team. + alias hkmbs='heroku members:set' + + ## ------------------------------------------------------------------ + ## 3.4 Heroku Postgres aliases + ## ------------------------------------------------------------------ + + # hkpg: Show database information. + alias hkpg='heroku pg' + + # hkpgb: Show table and index bloat in your database ordered by most + # wasteful. + alias hkpgb='heroku pg:bloat' + + # hkpgbk: List database backups. + alias hkpgbk='heroku pg:backups' + + # hkpgbkcl: Cancel an in-progress backup or restore (default newest). + alias hkpgbkcl='heroku pg:backups:cancel' + + # hkpgbkc: Capture a new backup. + alias hkpgbkc='heroku pg:backups:capture' + + # hkpgbkdl: Delete a backup. + alias hkpgbkdl='heroku pg:backups:delete' + + # hkpgbkdw: Downloads database backup. + alias hkpgbkdw='heroku pg:backups:download' + + # hkpgbki: Get information about a specific backup. + alias hkpgbki='heroku pg:backups:info' + + # hkpgbkr: Restore a backup (default latest) to a database. + alias hkpgbkr='heroku pg:backups:restore' + + # hkpgbks: Schedule daily backups for given database. + alias hkpgbks='heroku pg:backups:schedule' + + # hkpgbksh: List backup schedule. + alias hkpgbksh='heroku pg:backups:schedules' + + # hkpgbkurl: Get secret but publicly accessible URL of a backup. + alias hkpgbkurl='heroku pg:backups:url' + + # hkpgbkk: Stop daily backups. + alias hkpgbkk='heroku pg:backups:unschedule' + + # hkpgblk: Display queries holding locks other queries are waiting to + # be released. + alias hkpgblk='heroku pg:blocking' + + # hkpgc: Copy all data from source db to target. + alias hkpgc='heroku pg:copy' + + # hkpgcpa: Add an attachment to a database using connection pooling. + alias hkpgcpa='heroku pg:connection-pooling:attach' + + # hkpgcr: Show information on credentials in the database. + alias hkpgcr='heroku pg:credentials' + + # hkpgcrc: Create credential within database. + alias hkpgcrc='heroku pg:credentials:create' + + # hkpgcrd: Destroy credential within database. + alias hkpgcrd='heroku pg:credentials:destroy' + + # hkpgcrr: Rotate the database credentials. + alias hkpgcrr='heroku pg:credentials:rotate' + + # hkpgcrrd: Repair the permissions of the default credential within + # database. + alias hkpgcrrd='heroku pg:credentials:repair-default' + + # hkpgcrurl: Show information on a database credential. + alias hkpgcrurl='heroku pg:credentials:url' + + # hkpgdg: Run or view diagnostics report. + alias hkpgdg='heroku pg:diagnose' + + # hkpgi: Show database information. + alias hkpgi='heroku pg:info' + + # hkpgk: Kill a query. + alias hkpgk='heroku pg:kill' + + # hkpgka: Terminates all connections for all credentials. + alias hkpgka='heroku pg:killall' + + # hkpglks: Display queries with active locks. + alias hkpglks='heroku pg:locks' + + # hkpglnk: Lists all databases and information on link. + alias hkpglnk='heroku pg:links' + + # hkpglnkc: Create a link between data stores. + alias hkpglnkc='heroku pg:links:create' + + # hkpglnkd: Destroys a link between data stores. + alias hkpglnkd='heroku pg:links:destroy' + + # hkpgmt: Show current maintenance information. + alias hkpgmt='heroku pg:maintenance' + + # hkpgmtr: Start maintenance. + alias hkpgmtr='heroku pg:maintenance:run' + + # hkpgmtw: Set weekly maintenance window. + alias hkpgmtw='heroku pg:maintenance:window' + + # hkpgo: Show 10 queries that have longest execution time in + # aggregate. + alias hkpgo='heroku pg:outliers' + + # hkpgp: Sets DATABASE as your DATABASE_URL. + alias hkpgp='heroku pg:promote' + + # hkpgps: View active queries with execution time. + alias hkpgps='heroku pg:ps' + + # hkpgpsql: Open a psql shell to the database. + alias hkpgpsql='heroku pg:psql' + + # hkpgpull: Pull Heroku database into local or remote database. + alias hkpgpull='heroku pg:pull' + + # hkpgpush: Push local or remote into Heroku database. + alias hkpgpush='heroku pg:push' + + # hkpgreset: Delete all data in DATABASE. + alias hkpgreset='heroku pg:reset' + + # hkpgreset: Show your current database settings. + alias hkpgset='heroku pg:settings' + + # hkpgsetllw: Controls whether a log message is produced when a + # session waits longer than the deadlock_timeout to acquire a lock. + alias hkpgsetllw='heroku pg:settings:log-lock-waits' + + # hkpgsetlmds: The duration of each completed statement will be logged + # if the statement completes after the time specified by VALUE. + alias hkpgsetlmds='heroku pg:settings:log-min-duration-statement' + + # hkpgsetlgs: 'log_statement' controls which SQL statements + # are logged. + alias hkpgsetlgs='heroku pg:settings:log-statement' + + # hkpguf: Stop a replica from following and make it a writeable + # database. + alias hkpguf='heroku pg:unfollow' + + # hkpgup: Unfollow a database and upgrade it to the latest stable + # PostgreSQL version. + alias hkpgup='heroku pg:upgrade' + + # hkpgvs: Show dead rows and whether an automatic vacuum is expected + # to be triggered. + alias hkpgvs='heroku pg:vacuum-stats' + + # hkpgww: Blocks until database is available. + alias hkpgww='heroku pg:wait' + + ## ------------------------------------------------------------------ + ## 3.5 Heroku Pipelines aliases + ## ------------------------------------------------------------------ + + # List pipelines you have access to. + alias hkpipe='heroku pipelines' + + # Add this app to a pipeline. + alias hkpipea='heroku pipelines:add' + + # Create a new pipeline. + alias hkpipec='heroku pipelines:create' + + # Connect a github repo to an existing pipeline. + alias hkpipect='heroku pipelines:connect' + + # Compares the latest release of this app to its downstream app(s). + alias hkpipediff='heroku pipelines:diff' + + # Show list of apps in a pipeline. + alias hkpipei='heroku pipelines:info' + + # Destroy a pipeline. + alias hkpipek='heroku pipelines:destroy' + + # Open a pipeline in dashboard. + alias hkpipeo='heroku pipelines:open' + + # Promote the latest release of this app to its downstream app(s). + alias hkpipep='heroku pipelines:promote' + + # Remove this app from its pipeline. + alias hkpiper='heroku pipelines:remove' + + # Rename a pipeline. + alias hkpipern='heroku pipelines:rename' + + # Bootstrap a new pipeline with common settings and create a + # production and staging app (requires a fully formed app.json in + # the repo). + alias hkpipes='heroku pipelines:setup' + + # Transfer ownership of a pipeline. + alias hkpipett='heroku pipelines:transfer' + + # Update the app's stage in a pipeline. + alias hkpipeu='heroku pipelines:update' + + ## ------------------------------------------------------------------ + ## 3.6 Heroku Plugins aliases + ## ------------------------------------------------------------------ + + # hkplugs: List installed plugins. + alias hkplugs='heroku plugins' + + # hkplugsi: Installs a plugin into the CLI. + alias hkplugsi='heroku plugins:install' + + # hkplugslk: Links a plugin into the CLI for development. + alias hkplugslk='heroku plugins:link' + + # hkplugsui: Removes a plugin from the CLI. + alias hkplugsui='heroku plugins:uninstall' + + # hkplugsu: Update installed plugins. + alias hkplugsu='heroku plugins:update' + + ## ------------------------------------------------------------------ + ## 3.7 Heroku 'ps' aliases + ## ------------------------------------------------------------------ + + # hkpsad: Disable web dyno autoscaling. + alias hkpsad='heroku ps:autoscale:disable' + + # hkps: List dynos for an app. + alias hkps='heroku ps' + + # hkpsae: Enable web dyno autoscaling. + alias hkpsae='heroku ps:autoscale:enable ' + + # hkpsc: Copy a file from a dyno to the local filesystem. + alias hkpsc='heroku ps:copy' + + # hkpse: Create an SSH session to a dyno. + alias hkpse='heroku ps:exec' + + # hkpsf: Forward traffic on a local port to a dyno. + alias hkpsf='heroku ps:forward' + + # hkpsk: Stop app dyno. + alias hkpsk='heroku ps:kill' + + # hkpsr: Restart app dynos. + alias hkpsr='heroku ps:restart' + + # hkpsrs: Manage dyno sizes. + alias hkpsrs='heroku ps:resize' + + # hkpss: Stop app dyno. + alias hkpss='heroku ps:stop' + + # hkpssc: Scale dyno quantity up or down. + alias hkpssc='heroku ps:scale' + + # hkpssck: Launch a SOCKS proxy into a dyno. + alias hkpssck='heroku ps:socks' + + # hkpst: Manage dyno sizes. + alias hkpst='heroku ps:type' + + # hkpsw: Wait for all dynos to be running latest version after + # a release. + alias hkpsw='heroku ps:wait' + + ## ------------------------------------------------------------------ + ## 3.8 Heroku redis aliases + ## ------------------------------------------------------------------ + + # hkred: Gets information about redis. + alias hkred='heroku redis' + + # hkredcli: Opens a redis prompt. + alias hkredcli='heroku redis:cli' + + # hkredcr: Display credentials information. + alias hkredcr='heroku redis:credentials' + + # hkredi: Gets information about redis. + alias hkredi='heroku redis:info' + + # hkredkn: Set the keyspace notifications configuration. + alias hkredkn='heroku redis:keyspace-notifications' + + # hkredmm: Set the key eviction policy. + alias hkredmm='heroku redis:maxmemory' + + # hkredmt: Manage maintenance windows. + alias hkredmt='heroku redis:maintenance' + + # hkredp: Sets DATABASE as your REDIS_URL. + alias hkredp='heroku redis:promote' + + # hkredsr: Reset all stats covered by RESETSTAT + # (). + alias hkredsr='heroku redis:stats-reset' + + # hkredt: Set the number of seconds to wait before killing idle + # connections. + alias hkredt='heroku redis:timeout' + + # hkredw: Wait for Redis instance to be available. + alias hkredw='heroku redis:wait' + + ## ------------------------------------------------------------------ + ## 3.9 Heroku Releases aliases + ## ------------------------------------------------------------------ + + # hkrel: Display the releases for an app. + alias hkrel='heroku releases' + + # hkreli: View detailed information for a release. + alias hkreli='heroku releases:info' + + # hkrelo: View the release command output. + alias hkrelo='heroku releases:output' + + # hkrelr: Rollback to a previous release. + alias hkrelr='heroku releases:rollback' + + ## ------------------------------------------------------------------ + ## 3.10.1 Heroku Spaces aliases + ## ------------------------------------------------------------------ + + # hkrvae: Enable review apps and/or settings on an existing pipeline. + alias hkrvae='heroku reviewapps:enable' + + # hkrvad: Disable review apps and/or settings on an existing pipeline. + alias hkrvad='heroku reviewapps:disable' + + ## ------------------------------------------------------------------ + ## 3.10.2 Heroku Run aliases + ## ------------------------------------------------------------------ + + # hkrun: Run a one-off process inside a heroku dyno. + alias hkrun='heroku run' + + # hkrund: Run a detached dyno, where output is sent to your logs. + alias hkrund='heroku run:detached' + + ## ------------------------------------------------------------------ + ## 3.10.3 Heroku Sessions aliases + ## ------------------------------------------------------------------ + + # hksessions: List your OAuth sessions. + alias hksessions='heroku sessions' + + # hksessionsd: Delete (logout) OAuth session by ID. + alias hksessionsd='heroku sessions:destroy' + + ## ------------------------------------------------------------------ + ## 3.10.4 Heroku Spaces aliases + ## ------------------------------------------------------------------ + + # hksp: List available spaces. + alias hksp='heroku spaces' + + # hkspc: Create a new space. + alias hkspc='heroku spaces:create' + + # hkspd: Destroy a space. + alias hkspd='heroku spaces:destroy' + + # hkspi: Show info about a space. + alias hkspi='heroku spaces:info' + + # hksppi: Display the information necessary to initiate a peering + # connection. + alias hksppi='heroku spaces:peering:info' + + # hkspp: List peering connections for a space. + alias hkspp='heroku spaces:peerings' + + # hksppa: Accepts a pending peering request for a private space. + alias hksppa='heroku spaces:peerings:accept' + + # hksppd: Destroys an active peering connection in a private space. + alias hksppd='heroku spaces:peerings:destroy' + + # hkspps: List dynos for a space. + alias hkspps='heroku spaces:ps' + + # hkspr: Renames a space. + alias hkspr='heroku spaces:rename' + + # hksptop: Show space topology. + alias hksptop='heroku spaces:topology' + + # hkspt: Transfer a space to another team. + alias hkspt='heroku spaces:transfer' + + # hkspconf: Display the configuration information for VPN. + alias hkspconf='heroku spaces:vpn:config' + + # hkspvc: Create VPN. + alias hkspvc='heroku spaces:vpn:connect' + + # hkspvcs: List the VPN Connections for a space. + alias hkspvcs='heroku spaces:vpn:connections' + + # hkspvk: Destroys VPN in a private space. + alias hkspvk='heroku spaces:vpn:destroy' + + # hkspvi: Display the information for VPN. + alias hkspvi='heroku spaces:vpn:info' + + # hkspvu: Update VPN. + alias hkspvu='heroku spaces:vpn:update' + + # hkspvw: Wait for VPN Connection to be created. + alias hkspvw='heroku spaces:vpn:wait' + + # hkspw: Wait for a space to be created. + alias hkspw='heroku spaces:wait' + + ## ------------------------------------------------------------------ + ## 3.10.5 Heroku Webhooks aliases + ## ------------------------------------------------------------------ + + # hkwh: List webhooks on an app. + alias hkwh='heroku webhooks' + + # hkwha: Add a webhook to an app. + alias hkwha='heroku webhooks:add' + + # hkwhdv: List webhook deliveries on an app. + alias hkwhdv='heroku webhooks:deliveries' + + # hkwhdvi: Info for a webhook event on an app. + alias hkwhdvi='heroku webhooks:deliveries:info' + + # hkwhev: List webhook events on an app. + alias hkwhev='heroku webhooks:events' + + # hkwhevi: Info for a webhook event on an app. + alias hkwhevi='heroku webhooks:events:info' + + # hkwhi: Info for a webhook on an app. + alias hkwhi='heroku webhooks:info' + + # hkwhr: Removes a webhook from an app. + alias hkwhr='heroku webhooks:remove' + + # hkwhu: Updates a webhook in an app. + alias hkwhu='heroku webhooks:update' fi diff --git a/lib/aliases/interactive/README.md b/lib/aliases/interactive/README.md new file mode 100644 index 00000000..efe44fcb --- /dev/null +++ b/lib/aliases/interactive/README.md @@ -0,0 +1,43 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΈπŸ…½πŸ†ƒπŸ…΄πŸ†πŸ…°πŸ…²πŸ†ƒπŸ…ΈπŸ†…πŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of interactive aliases for common command line +operations. The aliases are designed to simplify and enhance the user +experience by adding interactive prompts before executing potentially +destructive operations. + +### File manipulation aliases + +- `cp` Copy files and directories. +- `del` Remove a file or directory. +- `ln` Create a symbolic link. +- `mv` Move files interactively (ask before overwrite) and verbose. +- `rm` Prompts for every file before removing. +- `zap` Remove files interactively (ask before overwrite). + +### Trash manipulation alias + +- `bin` Remove all files in the trash. + +### Other interactive aliases + +- `chmod` Change permissions of a file or directory. +- `chown` Change the owner and group of a file or directory. +- `diff` Compare two files and show the differences. +- `grep` Search for a pattern in a file or output. +- `mkdir` Create a new directory and display a message on success. +- `touch` Create a new file and display a message on success. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/interactive/interactive.aliases.sh b/lib/aliases/interactive/interactive.aliases.sh index d9558eff..983d3f75 100644 --- a/lib/aliases/interactive/interactive.aliases.sh +++ b/lib/aliases/interactive/interactive.aliases.sh @@ -1,14 +1,53 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…ΈπŸ…½πŸ†ƒπŸ…΄πŸ†πŸ…°πŸ…²πŸ†ƒπŸ…ΈπŸ†…πŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -alias bin='rm -fr ${HOME}/.Trash' # bin: Remove all files in the trash. -alias cp="cp -vi" # cp: Copy files and directories. -alias del="rm -rfvi" # del: Remove a file or directory. -alias ln='ln -vi' # ln: interactive symbolic link -alias mv='mv -vi' # mv: Move files interactively (ask before overwrite) and verbose. -alias rm='rm -vi' # rm: Prompts for every file before removing. -alias zap='rm -vi' # zap: Remove files interactively (ask before overwrite). + +# File manipulation aliases + +# cp: Copy files and directories. +alias cp="cp -vi" + +# del: Remove a file or directory. +alias del="rm -rfvi" + +# ln: interactive symbolic link +alias ln='ln -vi' + +# mv: Move files interactively (ask before overwrite) and verbose. +alias mv='mv -vi' + +# rm: Prompts for every file before removing. +alias rm='rm -vi' + +# zap: Remove files interactively (ask before overwrite). +alias zap='rm -vi' + +# Trash manipulation alias + +# bin: Remove all files in the trash. +alias bin='rm -fr ${HOME}/.Trash' + +# Other interactive aliases + +# chmod: Change permissions of a file or directory. +alias chmod='chmod -v' + +# chown: Change the owner and group of a file or directory. +alias chown='chown -v' + +# diff: Compare two files and show the differences. +alias diff='diff -u' + +# grep: Search for a pattern in a file or output. +alias grep='grep -n -i' + +# mkdir: Create a new directory and display a message on success. +alias mkdir='mkdir -pv' + +# touch: Create a new file and display a message on success. +alias touch='touch -v' diff --git a/lib/aliases/jekyll/README.md b/lib/aliases/jekyll/README.md new file mode 100644 index 00000000..d1c15a12 --- /dev/null +++ b/lib/aliases/jekyll/README.md @@ -0,0 +1,37 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΉπŸ…΄πŸ…ΊπŸ†ˆπŸ…»πŸ…» πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for +[Jekyll](https://jekyllrb.com/). + +### 1. Jekyll Core aliases + +#### 1.1 Jekyll development aliases + +- `jkb` Performs a one off build your site to ./_site +- `jkc` Removes all generated files: destination folder, metadata file, + Sass and Jekyll caches +- `jkd` Does a development build of the site to '_site' and runs a local + development server +- `jkl` Does a development build of the site to '_site' and runs a local + development server +- `jko` Open local development server + +#### 1.2 Jekyll release aliases + +- `jkp` Does a production build of the site to '_site' and runs a local + development server + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/jekyll/jekyll.aliases.sh b/lib/aliases/jekyll/jekyll.aliases.sh index f371253c..b873ecb8 100644 --- a/lib/aliases/jekyll/jekyll.aliases.sh +++ b/lib/aliases/jekyll/jekyll.aliases.sh @@ -1,15 +1,54 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT -# πŸ…ΉπŸ…΄πŸ…ΊπŸ†ˆπŸ…»πŸ…» πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Jekyll aliases. -if command -v 'jekyll' >/dev/null; then - alias jkb='JEKYLL_ENV=development bundle exec jekyll build' # jkb: Performs a one off build your site to ./_site. - alias jkc='JEKYLL_ENV=development bundle exec jekyll clean' # jkc: Removes all generated files: destination folder, metadata file, Sass and Jekyll caches. - alias jkd='JEKYLL_ENV=development bundle exec jekyll serve --watch --trace' # jkd: Does a development build of the site to '_site' and runs a local development server. - alias jkl='JEKYLL_ENV=development bundle exec jekyll serve --livereload' # jkl: Does a development build of the site to '_site' and runs a local development server. - alias jko="open http://localhost:4000/" # jko: Open local development server. - alias jkp='JEKYLL_ENV=production bundle exec jekyll serve --watch --trace' # jkp: Does a production build of the site to '_site' and runs a local development server. +# πŸ…ΉπŸ…΄πŸ…ΊπŸ†ˆπŸ…»πŸ…» πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ +if command -v jekyll &>/dev/null; then + # Sections: + # + # 1. Jekyll Core aliases. + # 1.1 Jekyll development aliases. + # 1.2 Jekyll release aliases. + # + # Made with β™₯ in London, UK by @wwdseb + # Copyright (c) 2015-2023. All rights reserved + # Licensed under the MIT license + # + + ## ------------------------------------------------------------------ + ## 1. Jekyll Core aliases. + ## ------------------------------------------------------------------ + + ## ------------------------------------------------------------------ + ## 1.1 Jekyll development aliases. + ## ------------------------------------------------------------------ + + # jkb: Performs a one off build your site to ./_site. + alias jkb='JEKYLL_ENV=development bundle exec jekyll build' + + # jkc: Removes all generated files: destination folder, metadata file, + # Sass and Jekyll caches. + alias jkc='JEKYLL_ENV=development bundle exec jekyll clean' + + # jkd: Does a development build of the site to '_site' and runs a + # local development server. + alias jkd='JEKYLL_ENV=development bundle exec jekyll serve --watch --trace' + + # jkl: Does a development build of the site to '_site' and runs a + # local development server. + alias jkl='JEKYLL_ENV=development bundle exec jekyll serve --livereload' + + # jko: Open local development server. + alias jko="open http://localhost:4000/" + + ## ------------------------------------------------------------------ + ## 1.2 Jekyll release aliases. + ## ------------------------------------------------------------------ + + # jkp: Does a production build of the site to '_site' and runs a local + # development server. + alias jkp='JEKYLL_ENV=production bundle exec jekyll serve --watch --trace' fi diff --git a/lib/aliases/list/README.md b/lib/aliases/list/README.md new file mode 100644 index 00000000..f3b61174 --- /dev/null +++ b/lib/aliases/list/README.md @@ -0,0 +1,38 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…»πŸ…ΈπŸ†‚πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for listing files. + +- `l` List files with size, show type, human readable. +- `l1` Display one file per line. +- `la` List all files, show type, human readable. +- `labc` List all files in alphabetical order. +- `ldir` List directories only. +- `ldot` List hidden files. +- `left` List files by date, most recent last. +- `lf` List files only. +- `lk` Sort by size, largest first. +- `lla` List full path of all files in current directory. +- `locale` List all available locales. +- `lp` List all open ports. +- `lr` Recursive list, show type, human readable. +- `ls` Colorize the output. +- `lS` Order files by size, largest first. +- `lt` List contents of directories in a tree-like format. +- `lx` Sort by extension. +- `lz` Sort by size, smallest first. +- `right` List files by date, most recent first. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/list/list.aliases.sh b/lib/aliases/list/list.aliases.sh index 012e6754..d92297e8 100644 --- a/lib/aliases/list/list.aliases.sh +++ b/lib/aliases/list/list.aliases.sh @@ -1,35 +1,86 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…»πŸ…ΈπŸ†‚πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v 'ls' >/dev/null; then - alias 'l.'='ls -dlhF .* | grep -v "^d"' # l.: List hidden files. - alias l='ls -lFh' # l: Size, show type, human readable. - alias l1='ls -1' # l1: Display one file per line. - alias la='ls -lAFh' # la: All files, show type, human readable. - alias labc='ls -lap' # labc: List all files in alphabetical order. - alias lc='wc -l' # lc: Count the number of lines in the file. - alias lct='ls -lcrh' # lct: List files by time, newest first. - alias ld='ls -ltrh' # lt: Sort by date, oldest first. - alias ldir="ls -l | egrep '^d'" # ldir: List directories only. - alias ldot="l." # l.: List hidden files. - alias left='ls -t -1' # left: List files by date, most recent last. - alias right='ls -t -1r' # right: List files by date, most recent first. - alias lf="ls -l | egrep -v '^d'" # lf: List files only. - alias lk='ls -lSrh' # lk: Sort by size, largest first. - alias ll='la' # ll: Long list, show almost all, show type, human readable. - alias lla='ls -l -d $PWD/*' # lla: List full path of all files in current directory. - alias locale='locale -a | grep UTF-8' # locale: List all available locales. - alias lp='sudo lsof -i -T -n' # lp: List all open ports. - alias lr='ls -lRh' # lr: Recursive list, show type, human readable. - alias ls='ls --color' # ls: Colorize the output. - alias lS='ls -1FSsh' # lS: Order Files Based on Last Modified Time and size. - alias lt="tree" # lt: List contents of directories in a tree-like format. - alias lu='ls -lurh' # lu: Sort by date, oldest first. - alias lw='ls -xAh' # lw: Wide list, show almost all, show type, human readable. - alias lx='ls | sort -k 1,1 -t .' # lx: Sort by extension. - alias lz='ls -lSr' # lz: Sort by size, smallest first. -fi + +# List hidden files. +alias 'l.'='ls -dlhF .* | grep -v "^d"' + +# Size, show type, human readable. +alias l='ls -lFh' + +# Display one file per line. +alias l1='ls -1' + +# All files, show type, human readable. +alias la='ls -lAFh' + +# List all files in alphabetical order. +alias labc='ls -lap' + +# Count the number of lines in the file. +alias lc='wc -l' + +# List files by time, newest first. +alias lct='ls -lcrh' + +# Sort by date, oldest first. +alias ld='ls -ltrh' + +# List directories only. +alias ldir="ls -l | egrep '^d'" + +# List hidden files. +alias ldot="l." + +# List files by date, most recent last. +alias left='ls -t -1' + +# List files by date, most recent first. +alias right='ls -t -1r' + +# List files only. +alias lf="ls -l | egrep -v '^d'" + +# Sort by size, largest first. +alias lk='ls -lSrh' + +# Long list, show almost all, show type, human readable. +alias ll='la' + +# List full path of all files in current directory. +alias lla='ls -l -d $PWD/*' + +# locale: List all available locales. +alias locale='locale -a | grep UTF-8' + +# List all open ports. +alias lp='sudo lsof -i -T -n' + +# Recursive list, show type, human readable. +alias lr='ls -lRh' + +# Colorize the output. +alias ls='ls --color' + +# Order Files Based on Last Modified Time and size. +alias lS='ls -1FSsh' + +# List contents of directories in a tree-like format. +alias lt="tree" + +# Sort by date, oldest first. +alias lu='ls -lurh' + +# Wide list, show almost all, show type, human readable. +alias lw='ls -xAh' + +# Sort by extension. +alias lx='ls | sort -k 1,1 -t .' + +# Sort by size, smallest first. +alias lz='ls -lSr' diff --git a/lib/aliases/macOS/README.md b/lib/aliases/macOS/README.md new file mode 100644 index 00000000..05e39e44 --- /dev/null +++ b/lib/aliases/macOS/README.md @@ -0,0 +1,38 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for macOS. + +- `clds` Recursively delete .DS_Store files. +- `clls` Clean up LaunchServices to remove duplicates in the + 'Open With' menu. +- `finderHideHidden` Hide hidden files in Finder. +- `finderShowHidden` Show hidden files in Finder. +- `hideDesktopIcons` Hide all icons on the Desktop. +- `iphone` Open the device simulators. +- `lockScreen` Lock the screen of the mac. +- `ofd` Open the current directory in a Finder window. +- `purge` Purging Xcode DerivedData. +- `safariSafeMode` Launch Safari in Safe Mode. +- `showDesktopIcons` Show all icons on the Desktop. +- `screensaverDesktop` Run a screensaver on the Desktop. +- `trash` Empty the Trash on all mounted volumes and the main HDD. +- `vp` Verify macOS Permissions. +- `vv` Verify macOS Volume. +- `wifiOn` Turn on Wi-Fi. +- `wifiOff` Turn off Wi-Fi. +- `xcode` Launch XCode app in macOS. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/macOS/macos.aliases.sh b/lib/aliases/macOS/macos.aliases.sh new file mode 100644 index 00000000..94b8f331 --- /dev/null +++ b/lib/aliases/macOS/macos.aliases.sh @@ -0,0 +1,65 @@ +#!/usr/bin/env bash + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb +# Copyright (c) 2015-2023. All rights reserved +# License: MIT + +# πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +# Recursively delete .DS_Store files. +alias clds='find . -type f -name "*.DS_Store" -ls -delete' + +# Clean up LaunchServices to remove duplicates in the 'Open With' menu. +alias clls='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder' + +# Empty the Trash on all mounted volumes and the main HDD. +alias emptytrash='rm -rf ~/.Trash/*' + +# Hide hidden files in Finder. +alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' + +# Show hidden files in Finder. +alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' + +# Hide the Desktop icons. +alias hideDesktopIcons='defaults write com.apple.finder CreateDesktop false && killall Finder' + +# Open the device simulators. +alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' + +# Lock the screen (when going AFK). +alias lockScreen='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend' + +# Disable .DS_Store files on network volumes +alias noDS='defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true' + +# Open the current directory in a Finder window. +alias ofd='open $PWD' + +# Purging Xcode DerivedData. +alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' + +# Launch Safari in Safe Mode. +alias safariSafeMode='open -a Safari --args -safe-mode' + +# Show the Desktop icons. +alias showDesktopIcons='defaults write com.apple.finder CreateDesktop true && killall Finder' + +# Run a screensaver on the Desktop. +alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background' + +# vp: Verify macOS Permissions. +alias vp='diskutil verifyPermissions /' + +# vv: Verify macOS Volume. +alias vv='diskutil verifyvolume /' + +# Turn Wi-Fi on. +alias wifiOn='networksetup -setairportpower en0 on' + +# Turn Wi-Fi off. +alias wifiOff='networksetup -setairportpower en0 off' + +# xcode: Launch XCode app in macOS. +alias xcode='open -a xcode' diff --git a/lib/aliases/make/README.md b/lib/aliases/make/README.md new file mode 100644 index 00000000..674af8ad --- /dev/null +++ b/lib/aliases/make/README.md @@ -0,0 +1,28 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΌπŸ…°πŸ…ΊπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `make` command. + +- `mk` - Make. +- `mkc` - Make clean. +- `mkd` - Make doc. +- `mkf` - Make format. +- `mkh` - Make help. +- `mki` - Make install. +- `mka` - Make all. +- `mkr` - Make run. +- `mkt` - Make test. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/make/make.aliases.sh b/lib/aliases/make/make.aliases.sh index 20232ec8..ea3fb0b8 100644 --- a/lib/aliases/make/make.aliases.sh +++ b/lib/aliases/make/make.aliases.sh @@ -1,15 +1,35 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…ΌπŸ…°πŸ…ΊπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -alias mk='make' # mk: Make. -alias mkc='make clean' # mkc: Make clean. -alias mkd='make doc' # mkd: Make doc. -alias mkf='make format' # mkf: Make format. -alias mkh="make help" # mkh: Make help. -alias mki='make install' # mki: Make install. -alias mkr="make run" # mkr: Make run. -alias mkt='make test' # mkt: Make test. + +# mk - make +alias mk='make' + +# mkc - make clean +alias mkc='make clean' + +# mkd - make doc +alias mkd='make doc' + +# mkf - make format +alias mkf='make format' + +# mkh - make help +alias mkh='make help' + +# mki - make install +alias mki='make install' + +# mka - make all +alias mka='make all' + +# mkr - make run +alias mkr='make run' + +# mkt - make test +alias mkt='make test' diff --git a/lib/aliases/mkdir/README.md b/lib/aliases/mkdir/README.md new file mode 100644 index 00000000..cd1e9814 --- /dev/null +++ b/lib/aliases/mkdir/README.md @@ -0,0 +1,26 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΌπŸ…°πŸ…ΊπŸ…΄πŸ…³πŸ…ΈπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `mkdir` command. + +- `mcd` Make directory and cd into it. +- `mde` Make example directory with current date. +- `md` Make directory. +- `mdd` Make directory with date. +- `mdn` Make notes directory with current date. +- `mdw` Make work directory with current date. +- `mdt` Make directory with time. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/mkdir/mkdir.aliases.sh b/lib/aliases/mkdir/mkdir.aliases.sh index 57cd7154..419c722f 100644 --- a/lib/aliases/mkdir/mkdir.aliases.sh +++ b/lib/aliases/mkdir/mkdir.aliases.sh @@ -1,13 +1,29 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…ΌπŸ…°πŸ…ΊπŸ…΄πŸ…³πŸ…ΈπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -alias mcd='mkdir -pv && cd' # mcd: Make directory and cd into it. -alias mcdp='mkdir -pv && cd' # mcdp: Make directory and parents and cd into it. -alias md='mkd' # md: Make directory. -alias mdd='mkdir -pv $(date +%Y%m%d)' # mdd: Make directory with date. -alias mdp='mkdir -pv' # mdp: Make directory and parents. -alias mdt='mkdir -pv $(date +%h%m%s)' # mdt: Make directory with time. + +# Make directory and cd into it. +alias mcd='mkdir -pv && cd' + +# Make example directory with current date. +alias mde='mkdir -pv "$(date +%Y%m%d)-example"' + +# Make directory. +alias md='mkdir -v' + +# Make directory with date. +alias mdd='mkdir -pv $(date +%Y%m%d) && cd $(date +%Y%m%d)' + +# Make notes directory with current date. +alias mdn='mkdir -pv "$(date +%Y%m%d)-notes"' + +# Make work directory with current date. +alias mdw='mkdir -pv "$(date +%Y%m%d)-work"' + +# Make directory with time. +alias mdt='mkdir -pv $(date +%H%M%S)' diff --git a/lib/aliases/npm/README.md b/lib/aliases/npm/README.md new file mode 100644 index 00000000..29bb9f67 --- /dev/null +++ b/lib/aliases/npm/README.md @@ -0,0 +1,37 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…½πŸ…ΏπŸ…Ό πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for +[npm](https://www.npmjs.com/) package manager. + +- `npa` Audit npm packages. +- `npb` Build npm script. +- `npc` Cache npm package. +- `npd` Dev npm script. +- `npg` Global npm package. +- `npi` Install npm package. +- `npl` List npm packages. +- `npp` Publish npm package. +- `nprm` Remove npm package. +- `npr` Run npm script. +- `nprw` Run npm script watch. +- `nps` Start npm script. +- `npsv` Serve npm script. +- `npt` Test npm script. +- `npu` Update npm package. +- `npx` Exec npm package. +- `npy` Why npm package. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/npm/npm.aliases.sh b/lib/aliases/npm/npm.aliases.sh index a4572937..e1cc48f6 100644 --- a/lib/aliases/npm/npm.aliases.sh +++ b/lib/aliases/npm/npm.aliases.sh @@ -1,24 +1,61 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…½πŸ…ΏπŸ…Ό πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v npm &>/dev/null; then - alias npb='npm build' # npb: Build npm script. - alias npc='npm cache' # npc: Cache npm package. - alias npd='npm dev' # npd: Dev npm script. - alias npg='npm global' # npg: Global npm package. - alias npi='npm install' # npi: Install npm package. - alias npl='npm list' # npl: List npm packages. - alias npp='npm publish' # npp: Publish npm package. - alias npr='npm run' # npr: Run npm script. - alias nprw='npm run watch' # nprw: Run npm script watch. - alias nps='npm start' # nps: Start npm script. - alias npsv='npm serve' # npsv: Serve npm script. - alias npt='npm test' # npt: Test npm script. - alias npu='npm update' # npu: Update npm package. - alias npx='npm exec' # npx: Exec npm package. - alias npy='npm why' # npy: Why npm package. + # Audit npm packages. + alias npa='npm audit' + + # Build npm script. + alias npb='npm build' + + # Cache npm package. + alias npc='npm cache' + + # Dev npm script. + alias npd='npm dev' + + # Global npm package. + alias npg='npm global' + + # Install npm package. + alias npi='npm install' + + # List npm packages. + alias npl='npm list' + + # Publish npm package. + alias npp='npm publish' + + # Remove npm package. + alias nprm='npm uninstall' + + # Run npm script. + alias npr='npm run' + + # Run npm script watch. + alias nprw='npm run watch' + + # Start npm script. + alias nps='npm start' + + # Serve npm script. + alias npsv='npm serve' + + # Test npm script. + alias npt='npm test' + + # Update npm package. + alias npu='npm update' + + # Exec npm package. + alias npx='npm exec' + + # Why npm package. + alias npy='npm why' + fi diff --git a/lib/aliases/permission/README.md b/lib/aliases/permission/README.md new file mode 100644 index 00000000..a392a7a4 --- /dev/null +++ b/lib/aliases/permission/README.md @@ -0,0 +1,43 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΏπŸ…΄πŸ†πŸ…ΌπŸ…ΈπŸ†‚πŸ†‚πŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for file permissions. + +- `000` Set permissions to no read, write, or execute for user, group, + and others. +- `400` Set permissions to no read or write, but allow execute for user + only. +- `444` Set permissions to no write or execute, but allow read for all. +- `600` Set permissions to read and write for user only. +- `644` Set permissions to read for all, but write only for user. +- `666` Set permissions to read and write for all. +- `755` Set permissions to read, write, and execute for user, but only + read and execute for group and others. +- `764` Set permissions to read and write for user and group, but only + read for others. +- `777` Set permissions to read, write, and execute for all. +- `chgrp` Change group ownership of files or directories. +- `chgrpr` Change group ownership of files or directories recursively. +- `chgrpu` Change group ownership of files or directories recursively to + the current user. +- `chmod` Change file mode bits. +- `chmodr` Change file mode bits recursively. +- `chmodu` Change file mode bits recursively to the current user. +- `chmox` Make a file executable. +- `chown` Change file owner and group. +- `chownr` Change file owner and group recursively. +- `chownu` Change file owner and group recursively to the current user. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/permission/permission.aliases.sh b/lib/aliases/permission/permission.aliases.sh new file mode 100644 index 00000000..13b14131 --- /dev/null +++ b/lib/aliases/permission/permission.aliases.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - https://dotfiles.io +# Made with β™₯ in London, UK by @wwdseb +# Copyright (c) 2015-2023. All rights reserved +# License: MIT + +# πŸ…ΏπŸ…΄πŸ†πŸ…ΌπŸ…ΈπŸ†‚πŸ†‚πŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +if command -v chmod &>/dev/null; then + + # Set permissions to no read, write, or execute for user, group, and + # others. + alias 000='chmod -R 000' + + # Set permissions to no read or write, but allow execute for user + # only. + alias 400='chmod -R 400' + + # Set permissions to no write or execute, but allow read for all. + alias 444='chmod -R 444' + + # Set permissions to read and write for user only. + alias 600='chmod -R 600' + + # Set permissions to read for all, but write only for user. + alias 644='chmod -R 644' + + # Set permissions to read and write for all. + alias 666='chmod -R 666' + + # Set permissions to read, write, and execute for user, but only read + # and execute for group and others. + alias 755='chmod -R 755' + + # Set permissions to read and write for user and group, but only read + # for others. + alias 764='chmod -R 764' + + # Set permissions to read, write, and execute for all. + alias 777='chmod -R 777' + + # Change group ownership of files or directories. + alias chgrp='chgrp -v' + + # Change group ownership of files or directories recursively. + alias chgrpr='chgrp -Rv' + + # Change group ownership of files or directories recursively to the + # current user. + alias chgrpu='chgrp -Rv ${USER}' + + # Change file mode bits. + alias chmod='chmod -v' + + # Change file mode bits recursively. + alias chmodr='chmod -Rv' + + # Change file mode bits recursively to the current user. + alias chmodu='chmod -Rv u+rwX' + + # Make a file executable. + alias chmox='chmod +x' + + # Change file owner and group. + alias chown='chown -v' + + # Change file owner and group recursively. + alias chownr='chown -Rv' + + # Change file owner and group recursively to the current user. + alias chownu='chown -Rv ${USER}' + +fi diff --git a/lib/aliases/pnpm/README.md b/lib/aliases/pnpm/README.md new file mode 100644 index 00000000..b5ae22fe --- /dev/null +++ b/lib/aliases/pnpm/README.md @@ -0,0 +1,49 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΏπŸ…½πŸ…ΏπŸ…Ό πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for [pnpm](https://pnpm.js.org/). + +- `pni` Initialize a new project. +- `pnin` Install the project dependencies. +- `pnb` Build the project. +- `pnrun` Run a script from the project. +- `pnd` Run the project in dev mode. +- `pns` Run the project in serve mode. +- `pnst` Start the project. +- `pnln` Lint the project. +- `pnls` List all dependencies. +- `pnout` Check for outdated dependencies. +- `pnt` Test the project. +- `pntc` Test the project with coverage. +- `pndoc` Generate the project documentation. +- `pnpub` Publish the project. +- `pnwhy` Check why a dependency is installed. +- `pnui` Update a dependency interactively. +- `pnuil` Update a dependency interactively to the latest version. +- `pnup` Update a dependency. +- `pnad` Add a dev dependency to the project. +- `pnap` Add a peer dependency to the project. +- `pnrm` Remove a dependency from the project. +- `pnun` Uninstall the project dependencies. +- `pnga` Add a global dependency. +- `pngls` List all global dependencies. +- `pngrm` Remove a global dependency. +- `pngu` Update a global dependency. +- `pnh` Show the help. +- `pnc` Create a new project. +- `pnsv` Run the project in server mode. +- `pnx` Shortcut to pnpx. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/pnpm/pnpm.aliases.sh b/lib/aliases/pnpm/pnpm.aliases.sh index 3014c5df..f68cf9be 100644 --- a/lib/aliases/pnpm/pnpm.aliases.sh +++ b/lib/aliases/pnpm/pnpm.aliases.sh @@ -1,42 +1,76 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT -# πŸ…ΏπŸ…½πŸ…ΏπŸ…Ό πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Pnpm aliases +# πŸ…ΏπŸ…½πŸ…ΏπŸ…Ό πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v 'pnpm' >/dev/null; then - alias pna='pnpm add' # pna: Add a dependency to the project. - alias pnad='pnpm add --save-dev' # pnad: Add a dev dependency to the project. - alias pnap='pnpm add --save-peer' # pnap: Add a peer dependency to the project. - alias pnau='pnpm audit' # pnau: Audit the project. - alias pnb='pnpm run build' # pnb: Build the project. - alias pnc='pnpm create' # pnc: Create a new project. - alias pnd='pnpm run dev' # pnd: Run the project in dev mode. - alias pndoc='pnpm run doc' # pndoc: Generate the project documentation. - alias pnga='pnpm add --global' # pnga: Add a global dependency. - alias pngls='pnpm list --global' # pngls: List all global dependencies. - alias pngrm='pnpm remove --global' # pngrm: Remove a global dependency. - alias pngu='pnpm update --global' # pngu: Update a global dependency. - alias pnh='pnpm help' # pnh: Show the help. - alias pni='pnpm init' # pni: Initialize a new project. - alias pnin='pnpm install' # pnin: Install the project dependencies. - alias pnln='pnpm run lint' # pnln: Lint the project. - alias pnls='pnpm list' # pnls: List all dependencies. - alias pnout='pnpm outdated' # pnout: Check for outdated dependencies. - alias pnp='pnpm' # pnp: Shortcut to pnpm. - alias pnpub='pnpm publish' # pnpub: Publish the project. - alias pnrm='pnpm remove' # pnrm: Remove a dependency from the project. - alias pnrun='pnpm run' # pnrun: Run a script from the project. - alias pns='pnpm run serve' # pns: Run the project in serve mode. - alias pnst='pnpm start' # pnst: Start the project. - alias pnsv='pnpm server' # pnsv: Run the project in server mode. - alias pnt='pnpm test' # pnt: Test the project. - alias pntc='pnpm test --coverage' # pntc: Test the project with coverage. - alias pnui='pnpm update --interactive' # pnui: Update a dependency interactively. - alias pnuil='pnpm update --interactive --latest' # pnuil: Update a dependency interactively to the latest version. - alias pnun='pnpm uninstall' # pnun: Uninstall the project dependencies. - alias pnup='pnpm update' # pnup: Update a dependency. - alias pnwhy='pnpm why' # pnwhy: Check why a dependency is installed. - alias pnx='pnpx' # pnx: Shortcut to pnpx. + # Add a dependency to the project. + alias pna='pnpm add' + # Add a dev dependency to the project. + alias pnad='pnpm add --save-dev' + # Add a peer dependency to the project. + alias pnap='pnpm add --save-peer' + # Audit the project. + alias pnau='pnpm audit' + # Build the project. + alias pnb='pnpm run build' + # Create a new project. + alias pnc='pnpm create' + # Run the project in dev mode. + alias pnd='pnpm run dev' + # Generate the project documentation. + alias pndoc='pnpm run doc' + # Add a global dependency. + alias pnga='pnpm add --global' + # List all global dependencies. + alias pngls='pnpm list --global' + # Remove a global dependency. + alias pngrm='pnpm remove --global' + # Update a global dependency. + alias pngu='pnpm update --global' + # Show the help. + alias pnh='pnpm help' + # Initialize a new project. + alias pni='pnpm init' + # Install the project dependencies. + alias pnin='pnpm install' + # Lint the project. + alias pnln='pnpm run lint' + # List all dependencies. + alias pnls='pnpm list' + # Check for outdated dependencies. + alias pnout='pnpm outdated' + # Shortcut to pnpm. + alias pnp='pnpm' + # Publish the project. + alias pnpub='pnpm publish' + # Remove a dependency from the project. + alias pnrm='pnpm remove' + # Run a script from the project. + alias pnrun='pnpm run' + # Run the project in serve mode. + alias pns='pnpm run serve' + # Start the project. + alias pnst='pnpm start' + # Run the project in server mode. + alias pnsv='pnpm server' + # Test the project. + alias pnt='pnpm test' + # Test the project with coverage. + alias pntc='pnpm test --coverage' + # Update a dependency interactively. + alias pnui='pnpm update --interactive' + # Update a dependency interactively to the latest version. + alias pnuil='pnpm update --interactive --latest' + # Uninstall the project dependencies. + alias pnun='pnpm uninstall' + # Update a dependency. + alias pnup='pnpm update' + # Check why a dependency is installed. + alias pnwhy='pnpm why' + # Shortcut to pnpx. + alias pnx='pnpx' fi diff --git a/lib/aliases/ps/README.md b/lib/aliases/ps/README.md new file mode 100644 index 00000000..4eb5d336 --- /dev/null +++ b/lib/aliases/ps/README.md @@ -0,0 +1,25 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ…ΏπŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for +[ps](https://www.gnu.org/software/ps/). + +- `pid` Display the uid, pid, parent pid, recent CPU usage, process + start time, controlling tty, elapsed CPU usage, and the associated + command +- `ps` Display all processes. +- `psa` List all processes. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/ps/ps.aliases.sh b/lib/aliases/ps/ps.aliases.sh index b5172afe..6d4d508d 100644 --- a/lib/aliases/ps/ps.aliases.sh +++ b/lib/aliases/ps/ps.aliases.sh @@ -1,12 +1,20 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT -# πŸ…ΏπŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - PS aliases +# πŸ…ΏπŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v 'ps' >/dev/null; then - alias pid='ps -f' # pid: Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the associated command. - alias ps='ps -ef' # ps: Display all processes. - alias psa='ps aux' # psa: List all processes. + + # Display the uid, pid, parent pid, recent CPU usage, process start + # time, controlling tty, elapsed CPU usage, and the associated command + alias pid='ps -f' + + # Display all processes. + alias ps='ps -ef' + + # List all processes. + alias psa='ps aux' fi diff --git a/lib/aliases/rsync/README.md b/lib/aliases/rsync/README.md new file mode 100644 index 00000000..455c501a --- /dev/null +++ b/lib/aliases/rsync/README.md @@ -0,0 +1,21 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†πŸ†‚πŸ†ˆπŸ…½πŸ…² πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `rsync` command. + +- `rs` Rsync with verbose and progress. +- `rs` Rsync with verbose and progress. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/rsync/rsync.aliases.sh b/lib/aliases/rsync/rsync.aliases.sh index 2f71b4ed..3f2b4cd6 100644 --- a/lib/aliases/rsync/rsync.aliases.sh +++ b/lib/aliases/rsync/rsync.aliases.sh @@ -1,11 +1,17 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ†πŸ†‚πŸ†ˆπŸ…½πŸ…² πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + if command -v 'rsync' >/dev/null; then - alias rs='rsync -avz' # rs: Rsync with verbose and progress. - alias rsync='rs' # rsync: Rsync with verbose and progress. + + # Rsync with verbose and progress. + alias rs='rsync -avz' + + # Rsync with verbose and progress. + alias rsync='rs' fi diff --git a/lib/aliases/rust/README.md b/lib/aliases/rust/README.md new file mode 100644 index 00000000..5075e62d --- /dev/null +++ b/lib/aliases/rust/README.md @@ -0,0 +1,57 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†πŸ†„πŸ†‚πŸ†ƒπŸ†„πŸ…Ώ πŸ…°πŸ…½πŸ…³ πŸ…²πŸ…°πŸ†πŸ…ΆπŸ…Ύ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `rustup` and `cargo` +commands. + +- `cg` Cargo shortcut. +- `cgb` Cargo build. +- `cgbh` Cargo bench. +- `cgbr` Cargo build release. +- `cgc` Cargo check. +- `cgcl` Cargo clean. +- `cgcy` Cargo clippy. +- `cgd` Cargo doc. +- `cgdr` Cargo doc release. +- `cgf` Cargo format. +- `cgi` Cargo install. +- `cginit` Cargo init. +- `cgn` Cargo new. +- `cgp` Cargo publish. +- `cgr` Cargo run. +- `cgrr` Cargo run release. +- `cgs` Cargo search. +- `cgt` Cargo test. +- `cgtr` Cargo test release. +- `cgtt` Cargo tree. +- `cgu` Cargo update. +- `cgun` Cargo uninstall. +- `ru` Rustup update. +- `rca` Rustup component add. +- `rcl` Rustup component list. +- `rcr` Rustup component remove. +- `rde` Rustup default. +- `rnn` Run rustup nightly. +- `rns` Run rustup stable. +- `rtaa` Rustup target add. +- `rtal` Rustup target list. +- `rtar` Rustup target remove. +- `rti` Rustup toolchain install. +- `rtl` Rustup toolchain list. +- `rtu` Rustup toolchain uninstall. +- `ruc` Update rustup nightly. +- `rus` Update rustup stable. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/rust/rust.aliases.sh b/lib/aliases/rust/rust.aliases.sh index 49557159..adee53d7 100644 --- a/lib/aliases/rust/rust.aliases.sh +++ b/lib/aliases/rust/rust.aliases.sh @@ -1,50 +1,127 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ…²πŸ…°πŸ†πŸ…ΆπŸ…Ύ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + if command -v 'cargo' >/dev/null; then - alias cg='cargo' # c: Cargo shortcut. - alias cgb='cg build' # cgb: Cargo build. - alias cgbh='cg bench' # cgbh: Cargo bench. - alias cgbr='cg build --release' # cbr: Cargo build release. - alias cgc='cg check' # cgc: Cargo check. - alias cgcl='cg clean' # cgcl: Cargo clean. - alias cgcy='cg clippy' # cgcy: Cargo clippy. - alias cgd='cg doc --open' # cgd: Cargo doc. - alias cgdr='cg doc --release' # cgdr: Cargo doc release. - alias cgf='cg fmt' # cgf: Cargo format. - alias cgi='cg install' # cgi: Cargo install. - alias cginit='cg init' # cginit: Cargo init. - alias cgn='cg new' # cgn: Cargo new. - alias cgp='cg publish' # cgp: Cargo publish. - alias cgr='cg run' # cgr: Cargo run. - alias cgrr='cg run --release' # cgrr: Cargo run release. - alias cgs='cg search' # cgs: Cargo search. - alias cgt='cg test' # cgt: Cargo test. - alias cgtr='cg test --release' # cgtr: Cargo test release. - alias cgtt='cg tree' # cgtt: Cargo tree. - alias cgu='cg update' # cgu: Cargo update. - alias cgun='cg uninstall' # cgun: Cargo uninstall. + # c: Cargo shortcut. + alias cg='cargo' + + # cgb: Cargo build. + alias cgb='cg build' + + # cgbh: Cargo bench. + alias cgbh='cg bench' + + # cbr: Cargo build release. + alias cgbr='cg build --release' + + # cgc: Cargo check. + alias cgc='cg check' + + # cgcl: Cargo clean. + alias cgcl='cg clean' + + # cgcy: Cargo clippy. + alias cgcy='cg clippy' + + # cgd: Cargo doc. + alias cgd='cg doc --open' + + # cgdr: Cargo doc release. + alias cgdr='cg doc --release' + + # cgf: Cargo format. + alias cgf='cg fmt' + + # cgi: Cargo install. + alias cgi='cg install' + + # cginit: Cargo init. + alias cginit='cg init' + + # cgn: Cargo new. + alias cgn='cg new' + + # cgp: Cargo publish. + alias cgp='cg publish' + + # cgr: Cargo run. + alias cgr='cg run' + + # cgrr: Cargo run release. + alias cgrr='cg run --release' + + # cgs: Cargo search. + alias cgs='cg search' + + # cgt: Cargo test. + alias cgt='cg test' + + # cgtr: Cargo test release. + alias cgtr='cg test --release' + + # cgtt: Cargo tree. + alias cgtt='cg tree' + + # cgu: Cargo update. + alias cgu='cg update' + + # cgun: Cargo uninstall. + alias cgun='cg uninstall' + fi # πŸ†πŸ†„πŸ†‚πŸ†ƒπŸ†„πŸ…Ώ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v 'rustup' >/dev/null; then - alias ru='rustup update' # ru: Rustup update. - alias rca='rustup component add' # rca: Rustup component add. - alias rcl='rustup component list' # rcl: Rustup component list. - alias rcr='rustup component remove' # rcr: Rustup component remove. - alias rde='rustup default' # rde: Rustup default. - alias rnn='rustup run nightly' # rnn: Run rustup nightly. - alias rns='rustup run stable' # rls: Run rustup stable. - alias rtaa='rustup target add' # rtaa: Rustup target add. - alias rtal='rustup target list' # rtal: Rustup target list. - alias rtar='rustup target remove' # rtar: Rustup target remove. - alias rti='rustup toolchain install' # rti: Rustup toolchain install. - alias rtl='rustup toolchain list' # rtl: Rustup toolchain list. - alias rtu='rustup toolchain uninstall' # rtu: Rustup toolchain uninstall. - alias ruc='rustup update nightly' # ruc: Update rustup nightly. - alias rus='rustup update stable' # rus: Update rustup stable. + + # Rustup update. + alias ru='rustup update' + + # Rustup component add. + alias rca='rustup component add' + + # Rustup component list. + alias rcl='rustup component list' + + # Rustup component remove. + alias rcr='rustup component remove' + + # Rustup default. + alias rde='rustup default' + + # Run rustup nightly. + alias rnn='rustup run nightly' + + # Run rustup stable. + alias rns='rustup run stable' + + # Rustup target add. + alias rtaa='rustup target add' + + # Rustup target list. + alias rtal='rustup target list' + + # Rustup target remove. + alias rtar='rustup target remove' + + # Rustup toolchain install. + alias rti='rustup toolchain install' + + # Rustup toolchain list. + alias rtl='rustup toolchain list' + + # Rustup toolchain uninstall. + alias rtu='rustup toolchain uninstall' + + # Update rustup nightly. + alias ruc='rustup update nightly' + + # Update rustup stable. + alias rus='rustup update stable' + fi diff --git a/lib/aliases/subversion/README.md b/lib/aliases/subversion/README.md new file mode 100644 index 00000000..b74d5be7 --- /dev/null +++ b/lib/aliases/subversion/README.md @@ -0,0 +1,62 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†‚πŸ†„πŸ…±πŸ†…πŸ…΄πŸ†πŸ†‚πŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the Subversion command line. + +- `sad` Put new files and directories under version control. +- `sau` Manage cached authentication credentials. +- `sbl` Show when each line of a file was last (or next) changed. +- `scg` Associate (or dissociate) changelist CLNAME with the named + files. +- `sci` Send changes from your working copy to the repository. +- `scl` Either recover from an interrupted operation that left the + working copy locked, or remove unwanted files. +- `sco` Check out a working copy from a repository. +- `scp` Copy files and directories in a working copy or repository. +- `sct` Output the content of specified files or URLs. +- `sdi` Display local changes or differences between two revisions or + paths. +- `sdl` Remove files and directories from version control. +- `shp` Describe the usage of this program or its subcommands. +- `sin` Display information about a local or remote item. +- `sip` Commit an unversioned file or tree into the repository. +- `slg` Show the log messages for a set of revision(s) and/or path(s). +- `slk` Lock working copy paths or URLs in the repository, so that no + other user can commit changes to them. +- `sls` List directory entries in the repository. +- `smd` Create a new directory under version control. +- `smg` Merge changes into a working copy. +- `smgi` Display merge-related information. +- `smv` Move (rename) an item in a working copy or repository. +- `sp` Set the value of a property on files, dirs, or revisions. +- `spdl` Remove a property from files, dirs, or revisions. +- `spdt` Edit a property with an external editor. +- `spgt` Print the value of a property on files, dirs, or revisions. +- `sph` Apply a patch to a working copy. +- `spls` List all properties on files, dirs, or revisions. +- `srl` Relocate the working copy to point to a different repository + root URL. +- `srs` Resolve conflicts on working copy files or directories. +- `srsd` Remove 'conflicted' state on working copy files or directories. +- `srv` Restore pristine working copy state (undo local changes). +- `sst` Print the status of working copy files and directories. +- `ssw` Update the working copy to a different URL within the same + repository. +- `sulk` Unlock working copy paths or URLs. +- `sup` Bring changes from the repository into the working copy. +- `supg` Upgrade the metadata storage format for a working copy. +- `sxp` Create an unversioned copy of a tree. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/subversion/subversion.aliases.sh b/lib/aliases/subversion/subversion.aliases.sh index 8603361f..9ec1c568 100644 --- a/lib/aliases/subversion/subversion.aliases.sh +++ b/lib/aliases/subversion/subversion.aliases.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT -# πŸ†‚πŸ†„πŸ…±πŸ†…πŸ…΄πŸ†πŸ†‚πŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - Subversion aliases. +# πŸ†‚πŸ†„πŸ…±πŸ†…πŸ…΄πŸ†πŸ†‚πŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v 'svn' >/dev/null; then alias sad='svn add' # sad: Put new files and directories under version control. alias sau='svn auth' # sau: Manage cached authentication credentials. diff --git a/lib/aliases/sudo/README.md b/lib/aliases/sudo/README.md new file mode 100644 index 00000000..f8ee1e5c --- /dev/null +++ b/lib/aliases/sudo/README.md @@ -0,0 +1,23 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†‚πŸ†„πŸ…³πŸ…Ύ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `sudo` command. + +- `root` Execute a command as the superuser. +- `s` Execute a command as the superuser. +- `su` Execute a command as the superuser. +- `sudo` Execute a command as the superuser. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/sudo/sudo.aliases.sh b/lib/aliases/sudo/sudo.aliases.sh index 84414eec..93d239fb 100644 --- a/lib/aliases/sudo/sudo.aliases.sh +++ b/lib/aliases/sudo/sudo.aliases.sh @@ -1,11 +1,20 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ†‚πŸ†„πŸ…³πŸ…Ύ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -alias root='s' # root: Execute a command as the superuser. -alias s='sudo -i' # s: Execute a command as the superuser. -alias su='sudo su' # su: Execute a command as the superuser. -alias sudo='s' # sudo: Execute a command as the superuser. + +# Execute a command as the superuser. +alias root='s' + +# Execute a command as the superuser. +alias s='sudo -i' + +# Execute a command as the superuser. +alias su='sudo su' + +# Execute a command as the superuser. +alias sudo='s' diff --git a/lib/aliases/tmux/README.md b/lib/aliases/tmux/README.md new file mode 100644 index 00000000..eab673ba --- /dev/null +++ b/lib/aliases/tmux/README.md @@ -0,0 +1,27 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†ƒπŸ…ΌπŸ†„πŸ†‡ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `tmux` command. + +- `tm` Start tmux. +- `tma` Attach to a tmux session. +- `tmat` Attach to a tmux session with name. +- `tmks` Kill all tmux sessions. +- `tml` List tmux sessions. +- `tmn` Start a new tmux session. +- `tmns` Start a new tmux session with name. +- `tms` Start a new tmux session. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/tmux/tmux.aliases.sh b/lib/aliases/tmux/tmux.aliases.sh index 15e6b7a4..27374674 100644 --- a/lib/aliases/tmux/tmux.aliases.sh +++ b/lib/aliases/tmux/tmux.aliases.sh @@ -1,17 +1,36 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ†ƒπŸ…ΌπŸ†„πŸ†‡ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + if command -v 'tmux' >/dev/null; then - alias tm='tmux' # tm: Start tmux. - alias tma="tmux attach-session" # tma: Attach to a tmux session. - alias tmat="tmux attach-session -t" # tmat: Attach to a tmux session with name. - alias tmks='tmux kill-session -a' # tmks: Kill all tmux sessions. - alias tml='tmux list-sessions' # tml: List tmux sessions. - alias tmn="tmux new-session" # tmn: Start a new tmux session. - alias tmns="tmux new -s" # tmns: Start a new tmux session with name. - alias tms='tmux new-session -s' # tms: Start a new tmux session. + + # Start tmux. + alias tm='tmux' + + # Attach to a tmux session. + alias tma="tmux attach-session" + + # Attach to a tmux session with name. + alias tmat="tmux attach-session -t" + + # Kill all tmux sessions. + alias tmks='tmux kill-session -a' + + # List tmux sessions. + alias tml='tmux list-sessions' + + # Start a new tmux session. + alias tmn="tmux new-session" + + # Start a new tmux session with name. + alias tmns="tmux new -s" + + # Start a new tmux session. + alias tms='tmux new-session -s' + fi diff --git a/lib/aliases/update/README.md b/lib/aliases/update/README.md new file mode 100644 index 00000000..005a8055 --- /dev/null +++ b/lib/aliases/update/README.md @@ -0,0 +1,34 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†„πŸ…ΏπŸ…³πŸ…°πŸ†ƒπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for updating various software on +macOS and Linux. + +### macOS + +- `upd` updates macOS software, Homebrew packages, Homebrew Casks, Mac + App Store apps, Rust stable toolchain, Ruby gems, Python packages, + and Node.js packages. + +### Linux + +- `open` opens a file or URL in the user's preferred application. +- `pbcopy` copies to clipboard. +- `pbpaste` pastes from clipboard. +- `upd` updates Linux packages, cleans up package cache, updates pnpm + packages, updates Rust stable toolchain, updates Ruby gems, updates + Python packages, and updates Node.js packages. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/update/update.aliases.sh b/lib/aliases/update/update.aliases.sh index e2b54aa8..10fdff2f 100644 --- a/lib/aliases/update/update.aliases.sh +++ b/lib/aliases/update/update.aliases.sh @@ -1,38 +1,69 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ†„πŸ…ΏπŸ…³πŸ…°πŸ†ƒπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if [[ "$(uname || true)" = "Darwin" ]]; then - alias upd=' +os_name="$(uname)" + +if [[ "${os_name}" = "Darwin" ]]; then + alias upd=" + echo \"❯ Updating \${os_name}...\"; sudo softwareupdate -i -a; + echo '❯ Updating Homebrew...'; + brew update && brew upgrade; + echo '❯ Updating pnpm packages...'; pnpm up; + echo '❯ Updating Rust stable toolchain...'; rustup update stable; - if [[ "$(command -v brew cu)" ]]; then - brew cu -ayi; - else - brew tap buo/cask-upgrade; - fi; - brew doctor; - brew update; - brew upgrade; - brew cleanup; + echo '❯ Updating Homebrew Casks...'; + brew cu -ayi || (brew tap buo/cask-upgrade && brew cu -ayi); + echo '❯ Cleaning up Homebrew...'; + brew cleanup && brew doctor; + echo '❯ Updating Mac App Store apps...'; mas upgrade; - sudo gem update; - sudo gem cleanup; - ' -elif [[ "$(uname || true)" = "Linux" ]]; then - alias open="xdg-open >/dev/null 2>&1" # open: Open a file or URL in the user's preferred application. - alias pbcopy='xsel --clipboard --input' # pbcopy: Copy to clipboard. - alias pbpaste='xsel --clipboard --output' # pbpaste: Paste from clipboard. - alias upd=' - sudo apt update; - sudo apt upgrade -y; + echo '❯ Updating Ruby gems...'; + sudo gem update && sudo gem cleanup; + echo '❯ Updating Python packages...'; + pip install --upgrade --user pip setuptools wheel; + update_outdated_pip_packages(); + echo '❯ Updating Node.js packages...'; + npm update -g; + echo '❯ Update complete!'; + " +elif [[ "${os_name}" = "Linux" ]]; then + # Open a file or URL in the user's preferred application. + alias open="xdg-open >/dev/null 2>&1" + + # Copy to clipboard. + alias pbcopy='xsel --clipboard --input' + + # Paste from clipboard. + alias pbpaste='xsel --clipboard --output' + alias upd=" + echo \"❯ Updating \${os_name}...\"; + sudo apt update && sudo apt upgrade -y; + echo '❯ Cleaning up package cache...'; + sudo apt autoremove -y && sudo apt clean; + echo '❯ Updating pnpm packages...'; pnpm up; + echo '❯ Updating Rust stable toolchain...'; rustup update stable; - sudo gem update; - sudo gem cleanup; - ' + echo '❯ Updating Ruby gems...'; + sudo gem update && sudo gem cleanup; + echo '❯ Updating Python packages...'; + pip install --upgrade --user pip setuptools wheel; + update_outdated_pip_packages(); + echo '❯ Updating Node.js packages...'; + npm update -g; + echo '❯ Update complete!'; + " fi + +function update_outdated_pip_packages() { + pip list --user --outdated --format=columns | + awk 'NR>2 {print $1}' | + xargs -I{} pip install -U --user "{}" || true +} diff --git a/lib/aliases/uuid/README.md b/lib/aliases/uuid/README.md new file mode 100644 index 00000000..8e554c84 --- /dev/null +++ b/lib/aliases/uuid/README.md @@ -0,0 +1,20 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ†„πŸ†„πŸ…ΈπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `uuidgen` command. + +- `uuid` Generate a UUID and copy it to the clipboard. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/uuid/uuid.aliases.sh b/lib/aliases/uuid/uuid.aliases.sh index cb628944..678430e5 100644 --- a/lib/aliases/uuid/uuid.aliases.sh +++ b/lib/aliases/uuid/uuid.aliases.sh @@ -1,10 +1,19 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ†„πŸ†„πŸ…ΈπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -if command -v 'uuidgen' >/dev/null; then - alias uuid="uuidgen | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo" # uuid: Generate a UUID and copy it to the clipboard. + +# uuid: Generate a UUID and copy it to the clipboard. +if [[ "${OSTYPE}" == "darwin"* ]]; then + if command -v 'uuidgen' >/dev/null; then + # macOS + alias uuid="uuidgen | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo" + fi +elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then + # Linux + alias uuid="uuid | tr '[:upper:]' '[:lower:]' | xsel -ib && xsel -ob && echo" fi diff --git a/lib/aliases/wget/README.md b/lib/aliases/wget/README.md new file mode 100644 index 00000000..a59f1be5 --- /dev/null +++ b/lib/aliases/wget/README.md @@ -0,0 +1,23 @@ + + + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +## πŸ††πŸ…ΆπŸ…΄πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ + +This code provides a set of aliases for the `wget` command. + +- `wg` wget. +- `wgc` wget with continue. +- `wge` wget with robots=off. +- `wget` wget with continue. + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/wget/wget.aliases.sh b/lib/aliases/wget/wget.aliases.sh index 41f7c7bb..180182de 100644 --- a/lib/aliases/wget/wget.aliases.sh +++ b/lib/aliases/wget/wget.aliases.sh @@ -1,13 +1,22 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # πŸ††πŸ…ΆπŸ…΄πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v 'wget' >/dev/null; then - alias wg='wget' # wg: wget. - alias wgc='wg' # wgc: wget with continue. - alias wge='wg -e robots=off' # wge: wget with robots=off. - alias wget='wget -c' # wget: wget with continue. + + # wget. + alias wg='wget' + + # wget with continue. + alias wgc='wg' + + # wget with robots=off. + alias wge='wg -e robots=off' + + # wget with continue. + alias wget='wget -c' fi diff --git a/lib/configurations.sh b/lib/configurations.sh index b7a4890e..d109c11f 100644 --- a/lib/configurations.sh +++ b/lib/configurations.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets configurations for the current shell. # License: MIT # Script: configurations.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io ## πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½πŸ†‚ diff --git a/lib/configurations/README.md b/lib/configurations/README.md index ef28b4a1..5afe8777 100644 --- a/lib/configurations/README.md +++ b/lib/configurations/README.md @@ -1,3 +1,14 @@ -# Dotfiles aliases + -![Banner representing the Dotfiles Library](/assets/dotfiles.svg) + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/configurations/bash/bashrc b/lib/configurations/bash/bashrc index 40f2edec..c721ef3a 100644 --- a/lib/configurations/bash/bashrc +++ b/lib/configurations/bash/bashrc @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT @@ -16,7 +17,7 @@ USER=$(whoami) # current user name. ## πŸ…΄πŸ†‡πŸ…ΏπŸ…ΎπŸ†πŸ†ƒπŸ†‚ - Export the variables. export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine. -export DOTFILES_VERSION='0.2.464' # version of the dotfiles. +export DOTFILES_VERSION='0.2.465' # version of the dotfiles. export DOTFILES="${HOME}"/.dotfiles/lib # path to the cross plaform dotfiles. export HOSTNAME=${HOSTNAME} # hostname of the machine. export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected) diff --git a/lib/configurations/curl/curlrc b/lib/configurations/curl/curlrc index 84af2628..3e661568 100644 --- a/lib/configurations/curl/curlrc +++ b/lib/configurations/curl/curlrc @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/default/color.sh b/lib/configurations/default/color.sh index 2ddfd68c..94ea7059 100644 --- a/lib/configurations/default/color.sh +++ b/lib/configurations/default/color.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/default/constants.sh b/lib/configurations/default/constants.sh index f0441958..c328e27d 100755 --- a/lib/configurations/default/constants.sh +++ b/lib/configurations/default/constants.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT @@ -10,7 +11,7 @@ DF=".dotfiles/" # Dotfiles. DF_DIR="${HOME}/.dotfiles/" # Dotfiles directory. DF_BACKUPDIR="${HOME}/dotfiles_backup/" # Backup directory. DF_DOWNLOADDIR="${HOME}/Downloads" # Download directory. -DF_VERSION="0.2.464" # Dotfiles Version number. +DF_VERSION="0.2.465" # Dotfiles Version number. # DF_TIMESTAMP="$(date +%Y-%m-%d_%H-%M-%S)" # Timestamp for backup directory. export DF diff --git a/lib/configurations/default/editor.sh b/lib/configurations/default/editor.sh index 423e1041..bc3fbb00 100644 --- a/lib/configurations/default/editor.sh +++ b/lib/configurations/default/editor.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/default/prompt.sh b/lib/configurations/default/prompt.sh index 395c0eac..41dd7674 100644 --- a/lib/configurations/default/prompt.sh +++ b/lib/configurations/default/prompt.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/input/inputrc b/lib/configurations/input/inputrc index 4478ae75..26a1d072 100644 --- a/lib/configurations/input/inputrc +++ b/lib/configurations/input/inputrc @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/nano/nanorc b/lib/configurations/nano/nanorc index 73eb7463..277b412e 100644 --- a/lib/configurations/nano/nanorc +++ b/lib/configurations/nano/nanorc @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/profile/profile b/lib/configurations/profile/profile index 5e929672..c03f68d2 100644 --- a/lib/configurations/profile/profile +++ b/lib/configurations/profile/profile @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/tmux/default b/lib/configurations/tmux/default index 5e2dea2f..9e51f042 100644 --- a/lib/configurations/tmux/default +++ b/lib/configurations/tmux/default @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/tmux/display b/lib/configurations/tmux/display index 21fddddf..a1862622 100644 --- a/lib/configurations/tmux/display +++ b/lib/configurations/tmux/display @@ -1,9 +1,13 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - + +# Made with β™₯ in London, UK by @wwdseb + # Copyright (c) 2015-2023. All rights reserved + # License: MIT ## πŸ…³πŸ…ΈπŸ†‚πŸ…ΏπŸ…»πŸ…°πŸ†ˆ + bind -n C-l send-keys C-l \; run 'sleep 0.2' \; clear-history # clear both screen and history set -g aggressive-resize on # resize panes automatically when window is resized set -g base-index 1 # start windows numbering at 1 diff --git a/lib/configurations/tmux/linux b/lib/configurations/tmux/linux index 31d7e806..4a9109ec 100644 --- a/lib/configurations/tmux/linux +++ b/lib/configurations/tmux/linux @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/tmux/navigation b/lib/configurations/tmux/navigation index f8593220..decb56d9 100644 --- a/lib/configurations/tmux/navigation +++ b/lib/configurations/tmux/navigation @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/tmux/panes b/lib/configurations/tmux/panes index 03fe2141..9bc7a160 100644 --- a/lib/configurations/tmux/panes +++ b/lib/configurations/tmux/panes @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/tmux/theme b/lib/configurations/tmux/theme index 4c36eda4..d7e28255 100644 --- a/lib/configurations/tmux/theme +++ b/lib/configurations/tmux/theme @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT @@ -22,7 +22,7 @@ set -g status-justify centre # Status bar justification (left, right, centre, ab set -g status-left-length 50 # Status bar left length set -g status-right-length 50 # Status bar right length set -g status-right "#[fg=#FFFFFF] #[bg=#14222A] ⬛ #I #[bg=#007ACC] #H #[bg=#EB0000] %_d %B %I:%M%p " -set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.464)" # Current window status format +set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.465)" # Current window status format set -g window-status-current-style "bg=#EB0000" # Current window status style set -g window-status-separator "" # Window status separator set-window-option -g clock-mode-colour "#FFFFFF" # Clock mode color diff --git a/lib/configurations/tmux/tmux b/lib/configurations/tmux/tmux index 72608936..44f0731f 100644 --- a/lib/configurations/tmux/tmux +++ b/lib/configurations/tmux/tmux @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/tmux/vi b/lib/configurations/tmux/vi index e79c56d2..592a8e55 100644 --- a/lib/configurations/tmux/vi +++ b/lib/configurations/tmux/vi @@ -1,6 +1,6 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - -# Made with β™₯ in London, UK by @sebastienrousseau +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved diff --git a/lib/configurations/vim/vimrc b/lib/configurations/vim/vimrc index d714e03d..7525c708 100644 --- a/lib/configurations/vim/vimrc +++ b/lib/configurations/vim/vimrc @@ -1,4 +1,4 @@ -" πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io +" πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - " Copyright (c) Sebastien Rousseau 2022. All rights reserved " License: MIT diff --git a/lib/configurations/wget/wgetrc b/lib/configurations/wget/wgetrc index 59e71ce4..0087392f 100644 --- a/lib/configurations/wget/wgetrc +++ b/lib/configurations/wget/wgetrc @@ -1,5 +1,5 @@ -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/configurations/zsh/zshrc b/lib/configurations/zsh/zshrc index 8edddf90..9220a77e 100644 --- a/lib/configurations/zsh/zshrc +++ b/lib/configurations/zsh/zshrc @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - # Made with β™₯ in London, UK by @sebastienrousseau # Copyright (c) 2015-2023. All rights reserved # License: MIT @@ -16,7 +16,7 @@ USER_LANGUAGE="en_GB.UTF-8" # default language. ## πŸ…΄πŸ†‡πŸ…ΏπŸ…ΎπŸ†πŸ†ƒπŸ†‚ - Export the variables. export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine. -export DOTFILES_VERSION='0.2.464' # version of the dotfiles. +export DOTFILES_VERSION='0.2.465' # version of the dotfiles. export DOTFILES="${HOME}"/.dotfiles/lib # path to the cross plaform dotfiles. export HOSTNAME=${HOSTNAME} # hostname of the machine. export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected) diff --git a/lib/functions.sh b/lib/functions.sh index eef176e9..bfed852e 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets functions for the current shell. # License: MIT # Script: functions.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # Load custom executable functions diff --git a/lib/functions/README.md b/lib/functions/README.md index ef28b4a1..e9cadae1 100644 --- a/lib/functions/README.md +++ b/lib/functions/README.md @@ -1,3 +1,70 @@ -# Dotfiles aliases + -![Banner representing the Dotfiles Library](/assets/dotfiles.svg) + + + + +# Dotfiles (v0.2.465) + +Simply designed to fit your shell life 🐚 + +![Dotfiles banner][banner] + +This code provides a set of miscellaneous functions to enhance your +shell experience and productivity. + +The functions are organized by category and are listed below. + +## πŸ…΅πŸ†„πŸ…½πŸ…²πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½πŸ†‚ πŸ…»πŸ…ΈπŸ†‚πŸ†ƒ + +### Navigation elements + +| Function | Description | Usage | +| :--- | :--- | :--- | +| `cdls` | Function to combine cd and ls. | `cdls ` | +| `goto` | Function to change to the directory inputed. | `goto ` | + +### Web Related Functions + +| Function | Description | Usage | +| :--- | :--- | :--- | +| `curlheader` | Function to return only a specific response header or all response headers for a given URL. | `curlheader [
]` | +| `curlstatus` | Function to return only the HTTP status code for a given URL. | `curlstatus ` | +| `curltime` | Function to return only the time it took to execute a given URL. | `curltime ` | +| `httpdebug` | Function to download a web page and show info on what took time. | `httpdebug ` | +| `view-source` | Function to view the source code of a web page. | `view-source ` | +| `whoisport` | Function to check if a port is open on a remote host. | `whoisport ` | + +### System Info and Utilities Functions + +| Function | Description | Usage | +| :--- | :--- | :--- | +| `environment` | Function to detect the current environment. | `environment` | +| `extract` | Function to extract most know archives with one command. The supported file formats include: tar.bz2, tar.gz, bz2, rar, gz, tar, tbz2, tgz, zip, Z, and 7z. | `extract ` | +| `filehead` | Function to display the first lines of a file. | `filehead ` | +| `freespace` | Function to display the free space on the disk. | `freespace` | +| `genpwd` | Function to generates a strong random password of 20 characters (similar to Apple) | `genpwd` | +| `hidehiddenfiles` | Function to hide hidden files in Finder. | `hidehiddenfiles` | +| `hostinfo` | Function to display useful host related information. | `hostinfo` | +| `hstats` | Function to display Ze Shell history stats informaton (requires zsh). | `hstats` | +| `keygen` | Function to generates SSH key pairs. | `keygen ` | +| `last` | List the modified files within 60 minutes. | `last` | +| `logout` | Function to logout from OS X via the Terminal. | `logout` | +| `lowercase` | Function to move filenames or directory names to lowercase. | `lowercase ` | +| `matrix` | Function to Enable Matrix Effect in the terminal. | `matrix` | +| `mount_read_only` | Function to mount a read-only disk image as read-write (OS X). | `mount_read_only ` | +| `myproc` | Function to list processes owned by an user.` | `myproc` | +| `prependpath` | Prepend $PATH without duplicates. | `prependpath ` | +| `ql` | Function to open any file in MacOS Quicklook Preview mode. | `ql ` | +| `rd` | Function to remove a directory and its files (OS X). | `rd ` | +| `remove_disk` | Spin down unneeded disk drives (OS X). | `remove_disk ` | +| `ren` | Function to rename files extension. | `ren ` | +| `showhiddenfiles` | Function to show hidden files in Finder. | `showhiddenfiles` | +| `size` | Function to display the size of a file or total size of a directory. | `size ` | +| `stopwatch` | Function to measure the time it takes to execute a program. | `stopwatch ` | +| `uppercase` | Function to move filenames or directory names to uppercase. | `uppercase ` | +| `vsc` | Function to open a file or folder in Visual Studio Code. | `vsc ` | +| `zipf` | Function to zip a file. | `zipf ` | + +[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/functions/cdls.sh b/lib/functions/cdls.sh index d8fe41c7..087e15b5 100644 --- a/lib/functions/cdls.sh +++ b/lib/functions/cdls.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/changediskpwd.tmp b/lib/functions/changediskpwd.tmp deleted file mode 100644 index 2d810187..00000000 --- a/lib/functions/changediskpwd.tmp +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# https://dotfiles.io -# -# Description: Mac OS X Dotfiles - Simply designed to fit your shell life. -# -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# Licensed under the MIT license -# - -# changediskpwd: Function to change the password on an encrypted disk image -# changediskpwd() { -# hdiutil chpass "$1" -# } diff --git a/lib/functions/code.tmp b/lib/functions/code.tmp deleted file mode 100644 index 8ab6926d..00000000 --- a/lib/functions/code.tmp +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# https://dotfiles.io -# -# Description: Mac OS X Dotfiles - Simply designed to fit your shell life. -# -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# Licensed under the MIT license -# - -# TODO: Fix code function -# Add Visual Studio Code (code) -# code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $"*" ;} diff --git a/lib/functions/countdown.tmp b/lib/functions/countdown.tmp deleted file mode 100644 index 94e671db..00000000 --- a/lib/functions/countdown.tmp +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# countdown: Function for countdown - -# TODO: Fix countdown function -# countdown() { - -# if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then -# echo "usage: -# countdown [SECONDS] -# countdown" -# exit 0 -# fi -# if [ -z "$1" ]; then -# read -rp "Enter a number of seconds to countdown from: " seconds -# else -# seconds=$1 -# fi -# : "${x=60}" -# for ((c = 1; c <= seconds; c++)); do -# sleep 1 -# seconds_remaining=$((seconds - c)) -# echo -ne "\033[2k\rCountdown: $seconds_remaining seconds" -# done -# echo -ne "\033[2k\r" -# echo "Countdown finished on $(date)" -# } - -# alias cntd='countdown' # Alias for countdown -# alias ctd='countdown' # Alias for countdown diff --git a/lib/functions/curlheader.sh b/lib/functions/curlheader.sh index 7edb8621..8496578e 100644 --- a/lib/functions/curlheader.sh +++ b/lib/functions/curlheader.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/curlstatus.sh b/lib/functions/curlstatus.sh new file mode 100644 index 00000000..cc2ce1c9 --- /dev/null +++ b/lib/functions/curlstatus.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb +# Copyright (c) 2015-2023. All rights reserved +# License: MIT + +## curlstatus: Function to return only the HTTP status code for a given URL. +## usage: curlstatus $url +curlstatus() { + # shellcheck disable=SC1083 + echo "curl -k -s -o /dev/null -w \"%{http_code}\" \$1:" + curl -k -s -o /dev/null -w "%{http_code}" "$1" +} +alias cs='curlstatus' # Alias for curlstatus +alias cst='curlstatus' # Alias for curlstatus +alias httpcode='curlstatus' # Alias for curlstatus diff --git a/lib/functions/curltime.sh b/lib/functions/curltime.sh index a62f18b1..ab8370fe 100644 --- a/lib/functions/curltime.sh +++ b/lib/functions/curltime.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT @@ -8,7 +9,7 @@ # # Description: Mac OS X Dotfiles - Simply designed to fit your shell life. # -# Made with β™₯ in London, UK by @sebastienrousseau +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # Licensed under the MIT license # diff --git a/lib/functions/encode64.sh b/lib/functions/encode64.sh index 82b920cf..8fb9adf8 100644 --- a/lib/functions/encode64.sh +++ b/lib/functions/encode64.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/environment.sh b/lib/functions/environment.sh index 1f09ba80..d2189811 100644 --- a/lib/functions/environment.sh +++ b/lib/functions/environment.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/extract.sh b/lib/functions/extract.sh index 4465e067..2743d08f 100644 --- a/lib/functions/extract.sh +++ b/lib/functions/extract.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/filehead.sh b/lib/functions/filehead.sh index 043b6378..466b08d8 100644 --- a/lib/functions/filehead.sh +++ b/lib/functions/filehead.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash # filehead: Function to display the first lines of a file. -filehead () { /usr/bin/xxd -u -g 1 "$@" | /usr/bin/head ;} +filehead() { /usr/bin/xxd -u -g 1 "$@" | /usr/bin/head || true; } diff --git a/lib/functions/freespace.sh b/lib/functions/freespace.sh new file mode 100644 index 00000000..90f598ee --- /dev/null +++ b/lib/functions/freespace.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb +# Copyright (c) 2015-2023. All rights reserved +# License: MIT + +# Erases purgeable disk space with 0s on the selected disk +freespace() { + if [[ -z "$1" ]]; then + echo "Usage: $0 " + echo "Example: $0 /dev/disk1s1" + echo + echo "Possible disks:" + df -h | awk 'NR == 1 || /^\/dev\/disk/' || true + return 1 + fi + + echo "Cleaning purgeable files from disk: $1 ...." + diskutil secureErase freespace 0 "$1" +} diff --git a/lib/functions/genpwd.sh b/lib/functions/genpwd.sh index bf80fbc4..c5696df6 100644 --- a/lib/functions/genpwd.sh +++ b/lib/functions/genpwd.sh @@ -1,15 +1,41 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb +# Copyright (c) 2015-2023. All rights reserved +# License: MIT + +# Function to generates a strong random password of 27 characters +#!/usr/bin/env bash +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - https://dotfiles.io # Made with β™₯ in London, UK by @sebastienrousseau # Copyright (c) 2015-2023. All rights reserved # License: MIT # genpwd: Function to generates a strong random password of 20 characters (similar to Apple) genpwd() { - m=$(openssl rand -base64 32 | cut -c 1-6) - a=$(openssl rand -base64 32 | cut -c 1-6) - c=$(openssl rand -base64 32 | cut -c 1-6) - pwd="$m-$a-$c" - echo "[INFO] The password has been copied to the clipboard: $pwd" - echo "$pwd" | pbcopy | pbpaste + # Define the special characters + SPECIAL="!@#$%^&*()+=[]{};':,.?~" + + # Generate 3 random strings of length 8 + m=$(openssl rand -base64 32 | tr -dc '[:alnum:]' | fold -w 8 | head -n 1 || true) + a=$(openssl rand -base64 32 | tr -dc '[:alnum:]' | fold -w 8 | head -n 1 || true) + c=$(openssl rand -base64 32 | tr -dc '[:alnum:]' | fold -w 8 | head -n 1 || true) + + # Choose random positions for the special characters + m_pos=$((RANDOM % 8)) + a_pos=$((RANDOM % 8)) + c_pos=$((RANDOM % 8)) + + # Choose a random special character from the list + special_char1="${SPECIAL:$((RANDOM % ${#SPECIAL})):1}" + special_char2="${SPECIAL:$((RANDOM % ${#SPECIAL})):1}" + special_char3="${SPECIAL:$((RANDOM % ${#SPECIAL})):1}" + + # Combine the strings with the special character to form the password + pwd="${m:0:${m_pos}}${special_char1}${m:${m_pos}}-${a:0:${a_pos}}${special_char2}${a:${a_pos}}-${c:0:${c_pos}}${special_char3}${c:${c_pos}}" + + echo "[INFO] The password has been copied to the clipboard: ${pwd}" + echo "${pwd}" | pbcopy | pbpaste || true + } diff --git a/lib/functions/goto.sh b/lib/functions/goto.sh index 4d40cc8b..780ebce1 100644 --- a/lib/functions/goto.sh +++ b/lib/functions/goto.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/headers.tmp b/lib/functions/headers.tmp deleted file mode 100644 index 5154bda7..00000000 --- a/lib/functions/headers.tmp +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -# headers: Function to retrieve the headers of the request. -#headers() { /usr/bin/curl -X GET -I -L -k -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36' $@ } diff --git a/lib/functions/hidehiddenfiles.sh b/lib/functions/hidehiddenfiles.sh index a063c17b..a4dd620c 100644 --- a/lib/functions/hidehiddenfiles.sh +++ b/lib/functions/hidehiddenfiles.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/history-all.tmp b/lib/functions/history-all.tmp deleted file mode 100644 index 2a10cd4e..00000000 --- a/lib/functions/history-all.tmp +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# history-all: Function to display the full view of the history command -#function history-all { history -E 1 } diff --git a/lib/functions/hostinfo.sh b/lib/functions/hostinfo.sh index a00abe3d..94ac6b1c 100644 --- a/lib/functions/hostinfo.sh +++ b/lib/functions/hostinfo.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/hstats.sh b/lib/functions/hstats.sh index ba945174..fb0be771 100644 --- a/lib/functions/hstats.sh +++ b/lib/functions/hstats.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/httpdebug.sh b/lib/functions/httpdebug.sh index 195f73f3..ee9d50f1 100644 --- a/lib/functions/httpdebug.sh +++ b/lib/functions/httpdebug.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/keygen.sh b/lib/functions/keygen.sh index 97d7f610..36d41600 100644 --- a/lib/functions/keygen.sh +++ b/lib/functions/keygen.sh @@ -1,24 +1,31 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # keygen: Function to generates SSH key keygen() { - - echo "What's the name of the Key (no space please) ? " - read -r name - - echo "What's the email associated with it? " - read -r email + if [[ $# -eq 0 ]]; then + echo "What's the name of the Key (no space please)? " + read -r name + echo "What's the email associated with it? " + read -r email + elif [[ $# -eq 1 ]]; then + name="$1" + echo "What's the email associated with the key? " + read -r email + elif [[ $# -eq 2 ]]; then + name="$1" + email="$2" + else + echo "Usage: keygen [name] [email]" + return 1 + fi ssh-keygen -t rsa -f ~/.ssh/id_rsa_"${name}" -C "${email}" - ssh-add ~/.ssh/id_rsa_"${name}" - pbcopy <~/.ssh/id_rsa_"${name}".pub - - echo "[INFO] SSH Key id_rsa_$(name).pub copied in your clipboard" - + echo "[INFO] SSH Key id_rsa_${name}.pub copied in your clipboard" } diff --git a/lib/functions/last.sh b/lib/functions/last.sh index 4b3e31a0..df4d0671 100644 --- a/lib/functions/last.sh +++ b/lib/functions/last.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/logout.sh b/lib/functions/logout.sh index b7b87333..4bd994a6 100644 --- a/lib/functions/logout.sh +++ b/lib/functions/logout.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/lowercase.sh b/lib/functions/lowercase.sh index 3c7234fb..435b1124 100644 --- a/lib/functions/lowercase.sh +++ b/lib/functions/lowercase.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/macos.sh b/lib/functions/macos.sh deleted file mode 100644 index 73937c9d..00000000 --- a/lib/functions/macos.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…ΏπŸ…»πŸ†„πŸ…ΆπŸ…ΈπŸ…½πŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - -alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files. -alias clls='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder' # clls: Clean up LaunchServices to remove duplicates in the 'Open With' menu. -alias emptytrash='rm -rf ~/.Trash/*' # Empty the Trash on all mounted volumes and the main HDD. -alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' # finderHideHidden: Hide hidden files in Finder. -alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' # finderShowHidden: Show hidden files in Finder. -alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' # iphone: Open the device simulators. -alias noDS='defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true' -alias ofd='open $PWD' # Open the current directory in a Finder window. -alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' # purge: Purging Xcode DerivedData. -alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background' # screensaverDesktop: Run a screensaver on the Desktop. -alias vp='diskutil verifyPermissions /' # vp: Verify macOS Permissions. -alias vv='diskutil verifyvolume /' # vv: Verify macOS Volume. -alias xcode='open -a xcode' # xcode: Launch XCode app in macOS. - -# πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…ΏπŸ…»πŸ†„πŸ…ΆπŸ…ΈπŸ…½πŸ…Ά πŸ…΅πŸ†„πŸ…½πŸ…²πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½πŸ†‚ - -# Erases purgeable disk space with 0s on the selected disk -freespace() { - if [[ -z "$1" ]]; then - echo "Usage: $0 " - echo "Example: $0 /dev/disk1s1" - echo - echo "Possible disks:" - df -h | awk 'NR == 1 || /^\/dev\/disk/' - return 1 - fi - - echo "Cleaning purgeable files from disk: $1 ...." - diskutil secureErase freespace 0 "$1" -} - -mp() { - # Don't let Preview.app steal focus if the man page doesn't exist - man -w "$@" >/dev/null 2>&1 || man -t "$@" | open -f -a Preview || man "$@" -} - -ql() { - (($# > 0)) && qlmanage -p "$*" &>/dev/null & -} diff --git a/lib/functions/matrix.sh b/lib/functions/matrix.sh index deb1423a..e1aaea89 100644 --- a/lib/functions/matrix.sh +++ b/lib/functions/matrix.sh @@ -1,27 +1,28 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # matrix: Function to Enable Matrix Effect in the terminal matrix() { - printf '\e[1;40m' - clear - while : || true; do - echo "${LINES} ${COLUMNS} $((RANDOM % COLUMNS)) $((RANDOM % 72))" - sleep 0.05 - done | awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' + printf '\e[1;40m' + clear + while : || true; do + echo "${LINES} ${COLUMNS} $((RANDOM % COLUMNS)) $((RANDOM % 72))" + sleep 0.05 || true + done | awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' } # matrix: Function to Enable Matrix Effect in the terminal in color matrix_color() { - printf '\e[1;40m' - clear - while : || true; do - echo "${LINES} ${COLUMNS} $((RANDOM % COLUMNS)) $((RANDOM % 72))" - sleep 0.05 - done | awk '{ + printf '\e[1;40m' + clear + while : || true; do + echo "${LINES} ${COLUMNS} $((RANDOM % COLUMNS)) $((RANDOM % 72))" + sleep 0.05 || true + done | awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1); diff --git a/lib/functions/mcd.tmp b/lib/functions/mcd.tmp deleted file mode 100644 index dfe4ed29..00000000 --- a/lib/functions/mcd.tmp +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# mcd: Function to combine mkdir and cd. -mcd() { - if [[ "$#" != 1 ]]; then - echo "[ERROR] Please add one argument" >&2 - return 1 - fi - echo "[INFO] Creating the folder $1" - mkdir "$1" - echo "[INFO] Switching to $1 folder" - cd "$1" || exit -} - -alias mkcd='mcd' # Alias for mcd diff --git a/lib/functions/mount_read_only.sh b/lib/functions/mount_read_only.sh index 6a3695dc..197b5412 100644 --- a/lib/functions/mount_read_only.sh +++ b/lib/functions/mount_read_only.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/myproc.sh b/lib/functions/myproc.sh index e85fe454..934506aa 100644 --- a/lib/functions/myproc.sh +++ b/lib/functions/myproc.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT # myproc: Function to list processes owned by an user -myproc() { ps "$@" -u "${USER}" -o pid,%cpu,%mem,start,time,bsdtime,command; } +myproc() { ps "$@" -u "${USER}" -o pid,%cpu,%mem,start,time,command; } diff --git a/lib/functions/prependpath.sh b/lib/functions/prependpath.sh index 4f611787..00ec8f8f 100644 --- a/lib/functions/prependpath.sh +++ b/lib/functions/prependpath.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/print.tmp b/lib/functions/print.tmp deleted file mode 100644 index a929f4e6..00000000 --- a/lib/functions/print.tmp +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# print: Function to display the argument given -# print() { -# if [[ "$#" != 1 ]]; then -# echo "[ERROR] Please add one argument" >&2 -# return 1 -# fi -# echo "$1" -# } diff --git a/lib/functions/ql.sh b/lib/functions/ql.sh index 4d81e184..18df0919 100644 --- a/lib/functions/ql.sh +++ b/lib/functions/ql.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/rd.sh b/lib/functions/rd.sh index 39aa715f..b907f9f0 100644 --- a/lib/functions/rd.sh +++ b/lib/functions/rd.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/remove_disk.sh b/lib/functions/remove_disk.sh index 607e8ffc..9d5b6083 100644 --- a/lib/functions/remove_disk.sh +++ b/lib/functions/remove_disk.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/ren.sh b/lib/functions/ren.sh index e793de2c..702c08ce 100644 --- a/lib/functions/ren.sh +++ b/lib/functions/ren.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/rm.tmp b/lib/functions/rm.tmp deleted file mode 100644 index ebc90398..00000000 --- a/lib/functions/rm.tmp +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# rm: Function to make 'rm' move files to the trash -# function rm() { -# if [[ "$#" != 1 ]]; then -# echo "[ERROR] Please add one argument" >&2 -# return 1 -# fi -# rm "$1" -# } diff --git a/lib/functions/rps.tmp b/lib/functions/rps.tmp deleted file mode 100755 index c7a086dd..00000000 --- a/lib/functions/rps.tmp +++ /dev/null @@ -1,104 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# Adapted from https://github.com/Ananta-Gupta/Rock-Paper-Scissors - -# rps: Function to play Rock Paper Scissors - -# check() { -# if [ "$1" == "$2" ]; then -# echo "Draw!" -# elif [ "$1" = 1 ] && [ "$2" = 2 ]; then -# echo "You Lose! Paper beats Rock!" -# elif [ "$1" = 2 ] && [ "$2" = 3 ]; then -# echo "You Lose! Scissor beats Paper!" -# elif [ "$1" = 3 ] && [ "$2" = 1 ]; then -# echo "You Lose! Rock beats Scissor!" -# elif [ "$1" != 1 ] && [ "$1" != 2 ] && [ "$1" != 3 ]; then -# echo "Invalid input! You have not entered a valid number" -# else -# echo " ❭ You Win! πŸ‘πŸ»" -# fi -# } - -# print() { -# echo "" -# echo "β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”" -# echo "β”‚ β”‚" -# echo "β”‚ Rock, Paper, Scissors β”‚" -# echo "β”‚ β”‚" -# echo "β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜" -# echo "" -# echo "Enter a choice :" -# echo "1 for Rock" -# echo "2 for Paper" -# echo "3 for Scissor" -# echo "" -# } - -# rps() { - -# clr=0 -# i=0 -# while [ $i != 1 ]; do -# if [ $clr = 0 ]; then -# clr=0 -# clear -# print 1 -# fi -# read -r ch1 -# echo "" - -# case $ch1 in -# 1) -# echo "You chose rock" -# ;; -# 2) -# echo "You chose paper" -# ;; -# 3) -# echo "You chose scissor" -# ;; -# esac - -# if [ "$ch1" = 0 ] && [ "$ch1" = 3 ]; then -# echo "please choose from 1, 2 or 3." -# clr=1 -# continue -# fi - -# ch2=$(echo "$RANDOM%3+1" | bc) - -# case $ch2 in -# 1) -# echo "The computer chose rock" -# ;; -# 2) -# echo "The computer chose paper" -# ;; -# 3) -# echo "The computer chose scissor" -# ;; -# esac - -# check "${ch1}" "${ch2}" -# echo "To exit press 0" -# echo "To play again press p : " -# read -r ch3 -# if [ "$ch3" = p ]; then -# rep=6 -# while [ $rep != 0 ]; do -# clear -# print 1 -# echo "Starting in $($rep - 1) seconds!!!" -# rep=$($rep - 1) -# done -# continue -# else -# exit -# fi -# done -# } diff --git a/lib/functions/showhiddenfiles.sh b/lib/functions/showhiddenfiles.sh index 62526fdf..a68ee15e 100644 --- a/lib/functions/showhiddenfiles.sh +++ b/lib/functions/showhiddenfiles.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/size.sh b/lib/functions/size.sh index 783b964e..6ce5d453 100644 --- a/lib/functions/size.sh +++ b/lib/functions/size.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/stopwatch.sh b/lib/functions/stopwatch.sh index 3e029607..3b521e96 100644 --- a/lib/functions/stopwatch.sh +++ b/lib/functions/stopwatch.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT @@ -8,7 +9,7 @@ stopwatch() { date1=$(gdate +%s) while true; do - echo -ne "$(gdate -u --date @$(($(date +%s) - date1)) +%H:%M:%S)\r" + echo -ne "$(gdate -u --date @$(($(date +%s) - date1)) +%H:%M:%S || true)\r" sleep 0.1 done } diff --git a/lib/functions/trash.tmp b/lib/functions/trash.tmp deleted file mode 100644 index cd4375fa..00000000 --- a/lib/functions/trash.tmp +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# trash: Function to moves a file to the MacOS trash -#trash(){ -# if [ "$#" != 1 ]; then -# echo "[ERROR] Please add one argument" >&2 -# return 1 -# fi -# rm "$1" -#} diff --git a/lib/functions/tree.tmp b/lib/functions/tree.tmp deleted file mode 100644 index 790b9df0..00000000 --- a/lib/functions/tree.tmp +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# tree: Function to generates a tree view from the current directory -#if [ ! -e /usr/local/bin/tree ]; then -# tree(){ -# pwd -# ls -R | grep ":$" | \ -# sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' -# } -#fi diff --git a/lib/functions/uppercase.sh b/lib/functions/uppercase.sh index f0b7d261..31bd3beb 100644 --- a/lib/functions/uppercase.sh +++ b/lib/functions/uppercase.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/uuidgen.tmp b/lib/functions/uuidgen.tmp deleted file mode 100644 index 0a121d3e..00000000 --- a/lib/functions/uuidgen.tmp +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.452) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau -# Copyright (c) 2015-2023. All rights reserved -# License: MIT - -# uuid: Function to generate a UUID (Universally Unique IDentifier) -# uuidgen() { -# local N B C='89ab' # 89ab is the hexadecimal value of 10, 11, 12, 13, 14, 15 in decimal -# for ((N = 0; N < 16; ++N)); do -# B=$(("$RANDOM" % 256)) -# case $N in -# 6) -# printf '4%x' $((B % 16)) -# ;; -# 8) -# printf '%c%x' ${C:$RANDOM%${#C}:1} ${B % 16} -# ;; -# 3 | 5 | 7 | 9) -# printf '%02x-' "${B}" -# ;; -# *) -# printf '%02x' "${B}" -# ;; -# esac -# done -# echo -# } diff --git a/lib/functions/view-source.sh b/lib/functions/view-source.sh index c4cd3815..b144749c 100644 --- a/lib/functions/view-source.sh +++ b/lib/functions/view-source.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/vscode.sh b/lib/functions/vscode.sh index feb00df5..11c78c16 100644 --- a/lib/functions/vscode.sh +++ b/lib/functions/vscode.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/whoisport.sh b/lib/functions/whoisport.sh index d13c708f..0d8e399c 100644 --- a/lib/functions/whoisport.sh +++ b/lib/functions/whoisport.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/functions/zipf.sh b/lib/functions/zipf.sh index 2961c1cd..42f50dd6 100644 --- a/lib/functions/zipf.sh +++ b/lib/functions/zipf.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/history.sh b/lib/history.sh index c51d796a..7784ccb1 100644 --- a/lib/history.sh +++ b/lib/history.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets history options for the current shell. # License: MIT # Script: history.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io # History wrapper diff --git a/lib/paths.sh b/lib/paths.sh index fdd93943..c9142ec9 100644 --- a/lib/paths.sh +++ b/lib/paths.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash -# Author: Sebastien Rousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved -# Description: Sets paths for the current shell. # License: MIT # Script: paths.sh -# Version: 0.2.464 +# Version: 0.2.465 # Website: https://dotfiles.io ## πŸ…ΏπŸ…°πŸ†ƒπŸ…·πŸ†‚ diff --git a/lib/paths/ant/ant.paths.sh b/lib/paths/ant/ant.paths.sh index a98630d5..825a3568 100644 --- a/lib/paths/ant/ant.paths.sh +++ b/lib/paths/ant/ant.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/default/default.paths.sh b/lib/paths/default/default.paths.sh index ecc567a9..6ca0d63b 100644 --- a/lib/paths/default/default.paths.sh +++ b/lib/paths/default/default.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/homebrew/homebrew.paths.sh b/lib/paths/homebrew/homebrew.paths.sh index 51da6a9c..19a19029 100644 --- a/lib/paths/homebrew/homebrew.paths.sh +++ b/lib/paths/homebrew/homebrew.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/java/java.paths.sh b/lib/paths/java/java.paths.sh index 10dc772e..2ada01f1 100644 --- a/lib/paths/java/java.paths.sh +++ b/lib/paths/java/java.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/maven/maven.paths.sh b/lib/paths/maven/maven.paths.sh index d0f81e82..3b5b527a 100644 --- a/lib/paths/maven/maven.paths.sh +++ b/lib/paths/maven/maven.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/node/node.paths.sh b/lib/paths/node/node.paths.sh index 230c0a57..7f2b0933 100644 --- a/lib/paths/node/node.paths.sh +++ b/lib/paths/node/node.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/nvm/nvm.paths.sh b/lib/paths/nvm/nvm.paths.sh index 378fcbd2..a7b255ad 100644 --- a/lib/paths/nvm/nvm.paths.sh +++ b/lib/paths/nvm/nvm.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/pnpm/pnpm.paths.sh b/lib/paths/pnpm/pnpm.paths.sh index 2bd39699..c95c8092 100644 --- a/lib/paths/pnpm/pnpm.paths.sh +++ b/lib/paths/pnpm/pnpm.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/python/python.paths.sh b/lib/paths/python/python.paths.sh index a77fa52c..811c5fcf 100644 --- a/lib/paths/python/python.paths.sh +++ b/lib/paths/python/python.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/ruby/ruby.paths.sh b/lib/paths/ruby/ruby.paths.sh index 3df06a58..a6318896 100644 --- a/lib/paths/ruby/ruby.paths.sh +++ b/lib/paths/ruby/ruby.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/lib/paths/tmux/tmux.paths.sh b/lib/paths/tmux/tmux.paths.sh index 847b91fa..6098e2c9 100644 --- a/lib/paths/tmux/tmux.paths.sh +++ b/lib/paths/tmux/tmux.paths.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/package.json b/package.json index 2037808f..fc98a628 100644 --- a/package.json +++ b/package.json @@ -26,14 +26,14 @@ ], "description": "Dotfiles - A set of macOS / Linux and Windows configuration files - Simply designed to fit your shell life.", "devDependencies": { - "@types/node": "^18.15.0", - "compressing": "^1.8.0", + "@types/node": "^18.16.1", + "compressing": "^1.9.0", "filesizes": "^0.1.2", - "fs-extra": "11.1.0", + "fs-extra": "11.1.1", "husky": "^8.0.3", "jsmin": "^1.0.1", - "rimraf": "^4.4.0", - "typescript": "^4.9.5" + "rimraf": "^5.0.0", + "typescript": "^5.0.4" }, "directories": { "bin": "./bin", @@ -41,7 +41,7 @@ "scripts": "./scripts" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": "^12.20.0 || ^14.13.1 || >=20.0.0" }, "files": [ "dist/" @@ -87,5 +87,5 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "types": "./dist/bin/index.d.ts", - "version": "0.2.464" -} \ No newline at end of file + "version": "0.2.465" +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0c0c7f99..1812005b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,278 +1,333 @@ -lockfileVersion: 5.4 - -specifiers: - '@types/node': ^18.15.0 - compressing: ^1.8.0 - filesizes: ^0.1.2 - fs-extra: 11.1.0 - husky: ^8.0.3 - jsmin: ^1.0.1 - rimraf: ^4.4.0 - typescript: ^4.9.5 +lockfileVersion: '6.0' devDependencies: - '@types/node': registry.npmjs.org/@types/node/18.15.0 - compressing: registry.npmjs.org/compressing/1.8.0 - filesizes: registry.npmjs.org/filesizes/0.1.2 - fs-extra: registry.npmjs.org/fs-extra/11.1.0 - husky: registry.npmjs.org/husky/8.0.3 - jsmin: registry.npmjs.org/jsmin/1.0.1 - rimraf: registry.npmjs.org/rimraf/4.4.0 - typescript: registry.npmjs.org/typescript/4.9.5 + '@types/node': + specifier: ^18.16.1 + version: registry.npmjs.org/@types/node@18.16.1 + compressing: + specifier: ^1.9.0 + version: registry.npmjs.org/compressing@1.9.0 + filesizes: + specifier: ^0.1.2 + version: registry.npmjs.org/filesizes@0.1.2 + fs-extra: + specifier: 11.1.1 + version: registry.npmjs.org/fs-extra@11.1.1 + husky: + specifier: ^8.0.3 + version: registry.npmjs.org/husky@8.0.3 + jsmin: + specifier: ^1.0.1 + version: registry.npmjs.org/jsmin@1.0.1 + rimraf: + specifier: ^5.0.0 + version: registry.npmjs.org/rimraf@5.0.0 + typescript: + specifier: ^5.0.4 + version: registry.npmjs.org/typescript@5.0.4 packages: - registry.npmjs.org/@eggjs/yauzl/2.11.0: + registry.npmjs.org/@eggjs/yauzl@2.11.0: resolution: {integrity: sha512-Jq+k2fCZJ3i3HShb0nxLUiAgq5pwo8JTT1TrH22JoehZQ0Nm2dvByGIja1NYfNyuE4Tx5/Dns5nVsBN/mlC8yg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/@eggjs/yauzl/-/yauzl-2.11.0.tgz} name: '@eggjs/yauzl' version: 2.11.0 dependencies: - buffer-crc32: registry.npmjs.org/buffer-crc32/0.2.13 - fd-slicer2: registry.npmjs.org/fd-slicer2/1.2.0 + buffer-crc32: registry.npmjs.org/buffer-crc32@0.2.13 + fd-slicer2: registry.npmjs.org/fd-slicer2@1.2.0 dev: true - registry.npmjs.org/@types/node/18.15.0: - resolution: {integrity: sha512-z6nr0TTEOBGkzLGmbypWOGnpSpSIBorEhC4L+4HeQ2iezKCi4f77kyslRwvHeNitymGQ+oFyIWGP96l/DPSV9w==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/@types/node/-/node-18.15.0.tgz} + registry.npmjs.org/@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz} + name: '@pkgjs/parseargs' + version: 0.11.0 + engines: {node: '>=14'} + requiresBuild: true + dev: true + optional: true + + registry.npmjs.org/@types/node@18.16.1: + resolution: {integrity: sha512-DZxSZWXxFfOlx7k7Rv4LAyiMroaxa3Ly/7OOzZO8cBNho0YzAi4qlbrx8W27JGqG57IgR/6J7r+nOJWw6kcvZA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/@types/node/-/node-18.16.1.tgz} name: '@types/node' - version: 18.15.0 + version: 18.16.1 dev: true - registry.npmjs.org/ansi-styles/4.3.0: + registry.npmjs.org/ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz} + name: ansi-regex + version: 5.0.1 + engines: {node: '>=8'} + dev: true + + registry.npmjs.org/ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz} name: ansi-styles version: 4.3.0 engines: {node: '>=8'} dependencies: - color-convert: registry.npmjs.org/color-convert/2.0.1 + color-convert: registry.npmjs.org/color-convert@2.0.1 dev: true - registry.npmjs.org/balanced-match/1.0.2: + registry.npmjs.org/balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz} name: balanced-match version: 1.0.2 dev: true - registry.npmjs.org/bl/1.2.3: + registry.npmjs.org/bl@1.2.3: resolution: {integrity: sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/bl/-/bl-1.2.3.tgz} name: bl version: 1.2.3 dependencies: - readable-stream: registry.npmjs.org/readable-stream/2.3.8 - safe-buffer: registry.npmjs.org/safe-buffer/5.2.1 + readable-stream: registry.npmjs.org/readable-stream@2.3.8 + safe-buffer: registry.npmjs.org/safe-buffer@5.2.1 dev: true - registry.npmjs.org/brace-expansion/2.0.1: + registry.npmjs.org/brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz} name: brace-expansion version: 2.0.1 dependencies: - balanced-match: registry.npmjs.org/balanced-match/1.0.2 + balanced-match: registry.npmjs.org/balanced-match@1.0.2 dev: true - registry.npmjs.org/buffer-alloc-unsafe/1.1.0: + registry.npmjs.org/buffer-alloc-unsafe@1.1.0: resolution: {integrity: sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz} name: buffer-alloc-unsafe version: 1.1.0 dev: true - registry.npmjs.org/buffer-alloc/1.2.0: + registry.npmjs.org/buffer-alloc@1.2.0: resolution: {integrity: sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz} name: buffer-alloc version: 1.2.0 dependencies: - buffer-alloc-unsafe: registry.npmjs.org/buffer-alloc-unsafe/1.1.0 - buffer-fill: registry.npmjs.org/buffer-fill/1.0.0 + buffer-alloc-unsafe: registry.npmjs.org/buffer-alloc-unsafe@1.1.0 + buffer-fill: registry.npmjs.org/buffer-fill@1.0.0 dev: true - registry.npmjs.org/buffer-crc32/0.2.13: + registry.npmjs.org/buffer-crc32@0.2.13: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz} name: buffer-crc32 version: 0.2.13 dev: true - registry.npmjs.org/buffer-fill/1.0.0: + registry.npmjs.org/buffer-fill@1.0.0: resolution: {integrity: sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz} name: buffer-fill version: 1.0.0 dev: true - registry.npmjs.org/chalk/3.0.0: + registry.npmjs.org/chalk@3.0.0: resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz} name: chalk version: 3.0.0 engines: {node: '>=8'} dependencies: - ansi-styles: registry.npmjs.org/ansi-styles/4.3.0 - supports-color: registry.npmjs.org/supports-color/7.2.0 + ansi-styles: registry.npmjs.org/ansi-styles@4.3.0 + supports-color: registry.npmjs.org/supports-color@7.2.0 dev: true - registry.npmjs.org/cli-table/0.3.11: + registry.npmjs.org/cli-table@0.3.11: resolution: {integrity: sha512-IqLQi4lO0nIB4tcdTpN4LCB9FI3uqrJZK7RC515EnhZ6qBaglkIgICb1wjeAqpdoOabm1+SuQtkXIPdYC93jhQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/cli-table/-/cli-table-0.3.11.tgz} name: cli-table version: 0.3.11 engines: {node: '>= 0.2.0'} dependencies: - colors: registry.npmjs.org/colors/1.0.3 + colors: registry.npmjs.org/colors@1.0.3 + dev: true + + registry.npmjs.org/cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz} + name: cliui + version: 7.0.4 + dependencies: + string-width: registry.npmjs.org/string-width@4.2.3 + strip-ansi: registry.npmjs.org/strip-ansi@6.0.1 + wrap-ansi: registry.npmjs.org/wrap-ansi@7.0.0 dev: true - registry.npmjs.org/color-convert/2.0.1: + registry.npmjs.org/color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz} name: color-convert version: 2.0.1 engines: {node: '>=7.0.0'} dependencies: - color-name: registry.npmjs.org/color-name/1.1.4 + color-name: registry.npmjs.org/color-name@1.1.4 dev: true - registry.npmjs.org/color-name/1.1.4: + registry.npmjs.org/color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz} name: color-name version: 1.1.4 dev: true - registry.npmjs.org/colors/1.0.3: + registry.npmjs.org/colors@1.0.3: resolution: {integrity: sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/colors/-/colors-1.0.3.tgz} name: colors version: 1.0.3 engines: {node: '>=0.1.90'} dev: true - registry.npmjs.org/commander/4.1.1: + registry.npmjs.org/commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/commander/-/commander-4.1.1.tgz} name: commander version: 4.1.1 engines: {node: '>= 6'} dev: true - registry.npmjs.org/compressing/1.8.0: - resolution: {integrity: sha512-PyO8OGoPa2D7Vby7i+H8EiYSH0+bxcACZLUx5xZgCWg22tet7G3FLSws3Tc30WM0GA9vbsE0k+Tm5BzIM/4UuQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/compressing/-/compressing-1.8.0.tgz} + registry.npmjs.org/compressing@1.9.0: + resolution: {integrity: sha512-WBNRH/mIV7aEFuYQFk4zCQZPEXDtyuCCeIcq5wYbmk5VewmUWV1YXAGyG6+hwrRGfG3HTy3c4BV79yfgloPJWQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/compressing/-/compressing-1.9.0.tgz} name: compressing - version: 1.8.0 + version: 1.9.0 engines: {node: '>= 4.0.0'} dependencies: - '@eggjs/yauzl': registry.npmjs.org/@eggjs/yauzl/2.11.0 - flushwritable: registry.npmjs.org/flushwritable/1.0.0 - get-ready: registry.npmjs.org/get-ready/1.0.0 - iconv-lite: registry.npmjs.org/iconv-lite/0.5.2 - mkdirp: registry.npmjs.org/mkdirp/0.5.6 - pump: registry.npmjs.org/pump/3.0.0 - streamifier: registry.npmjs.org/streamifier/0.1.1 - tar-stream: registry.npmjs.org/tar-stream/1.6.2 - yazl: registry.npmjs.org/yazl/2.5.1 - dev: true - - registry.npmjs.org/core-util-is/1.0.3: + '@eggjs/yauzl': registry.npmjs.org/@eggjs/yauzl@2.11.0 + flushwritable: registry.npmjs.org/flushwritable@1.0.0 + get-ready: registry.npmjs.org/get-ready@1.0.0 + iconv-lite: registry.npmjs.org/iconv-lite@0.5.2 + mkdirp: registry.npmjs.org/mkdirp@0.5.6 + pump: registry.npmjs.org/pump@3.0.0 + streamifier: registry.npmjs.org/streamifier@0.1.1 + tar-stream: registry.npmjs.org/tar-stream@1.6.2 + yazl: registry.npmjs.org/yazl@2.5.1 + dev: true + + registry.npmjs.org/core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz} name: core-util-is version: 1.0.3 dev: true - registry.npmjs.org/duplexer/0.1.2: + registry.npmjs.org/cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz} + name: cross-spawn + version: 7.0.3 + engines: {node: '>= 8'} + dependencies: + path-key: registry.npmjs.org/path-key@3.1.1 + shebang-command: registry.npmjs.org/shebang-command@2.0.0 + which: registry.npmjs.org/which@2.0.2 + dev: true + + registry.npmjs.org/duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz} name: duplexer version: 0.1.2 dev: true - registry.npmjs.org/end-of-stream/1.4.4: + registry.npmjs.org/emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz} + name: emoji-regex + version: 8.0.0 + dev: true + + registry.npmjs.org/end-of-stream@1.4.4: resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz} name: end-of-stream version: 1.4.4 dependencies: - once: registry.npmjs.org/once/1.4.0 + once: registry.npmjs.org/once@1.4.0 dev: true - registry.npmjs.org/fd-slicer2/1.2.0: + registry.npmjs.org/fd-slicer2@1.2.0: resolution: {integrity: sha512-3lBUNUckhMZduCc4g+Pw4Ve16LD9vpX9b8qUkkKq2mgDRLYWzblszZH2luADnJqjJe+cypngjCuKRm/IW12rRw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/fd-slicer2/-/fd-slicer2-1.2.0.tgz} name: fd-slicer2 version: 1.2.0 dependencies: - pend: registry.npmjs.org/pend/1.2.0 + pend: registry.npmjs.org/pend@1.2.0 dev: true - registry.npmjs.org/filesizes/0.1.2: + registry.npmjs.org/filesizes@0.1.2: resolution: {integrity: sha512-B7S28jvoR/mSmccYwh6jkZYvsmuXqULibMkT9rU4hYZfjHTk7bw8Zmygss9UNX49YbJirzvGb2MSh/CbSWKzzQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/filesizes/-/filesizes-0.1.2.tgz} name: filesizes version: 0.1.2 hasBin: true dependencies: - chalk: registry.npmjs.org/chalk/3.0.0 - cli-table: registry.npmjs.org/cli-table/0.3.11 - commander: registry.npmjs.org/commander/4.1.1 - gzip-size: registry.npmjs.org/gzip-size/5.1.1 - pretty-bytes: registry.npmjs.org/pretty-bytes/5.6.0 + chalk: registry.npmjs.org/chalk@3.0.0 + cli-table: registry.npmjs.org/cli-table@0.3.11 + commander: registry.npmjs.org/commander@4.1.1 + gzip-size: registry.npmjs.org/gzip-size@5.1.1 + pretty-bytes: registry.npmjs.org/pretty-bytes@5.6.0 dev: true - registry.npmjs.org/flushwritable/1.0.0: + registry.npmjs.org/flushwritable@1.0.0: resolution: {integrity: sha512-3VELfuWCLVzt5d2Gblk8qcqFro6nuwvxwMzHaENVDHI7rxcBRtMCwTk/E9FXcgh+82DSpavPNDueA9+RxXJoFg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/flushwritable/-/flushwritable-1.0.0.tgz} name: flushwritable version: 1.0.0 dev: true - registry.npmjs.org/fs-constants/1.0.0: + registry.npmjs.org/foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz} + name: foreground-child + version: 3.1.1 + engines: {node: '>=14'} + dependencies: + cross-spawn: registry.npmjs.org/cross-spawn@7.0.3 + signal-exit: registry.npmjs.org/signal-exit@4.0.1 + dev: true + + registry.npmjs.org/fs-constants@1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz} name: fs-constants version: 1.0.0 dev: true - registry.npmjs.org/fs-extra/11.1.0: - resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz} + registry.npmjs.org/fs-extra@11.1.1: + resolution: {integrity: sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz} name: fs-extra - version: 11.1.0 + version: 11.1.1 engines: {node: '>=14.14'} dependencies: - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 - jsonfile: registry.npmjs.org/jsonfile/6.1.0 - universalify: registry.npmjs.org/universalify/2.0.0 - dev: true - - registry.npmjs.org/fs.realpath/1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz} - name: fs.realpath - version: 1.0.0 + graceful-fs: registry.npmjs.org/graceful-fs@4.2.11 + jsonfile: registry.npmjs.org/jsonfile@6.1.0 + universalify: registry.npmjs.org/universalify@2.0.0 dev: true - registry.npmjs.org/get-ready/1.0.0: + registry.npmjs.org/get-ready@1.0.0: resolution: {integrity: sha512-mFXCZPJIlcYcth+N8267+mghfYN9h3EhsDa6JSnbA3Wrhh/XFpuowviFcsDeYZtKspQyWyJqfs4O6P8CHeTwzw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/get-ready/-/get-ready-1.0.0.tgz} name: get-ready version: 1.0.0 dev: true - registry.npmjs.org/glob/9.2.1: - resolution: {integrity: sha512-Pxxgq3W0HyA3XUvSXcFhRSs+43Jsx0ddxcFrbjxNGkL2Ak5BAUBxLqI5G6ADDeCHLfzzXFhe0b1yYcctGmytMA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/glob/-/glob-9.2.1.tgz} + registry.npmjs.org/glob@10.2.2: + resolution: {integrity: sha512-Xsa0BcxIC6th9UwNjZkhrMtNo/MnyRL8jGCP+uEwhA5oFOCY1f2s1/oNKY47xQ0Bg5nkjsfAEIej1VeH62bDDQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/glob/-/glob-10.2.2.tgz} name: glob - version: 9.2.1 + version: 10.2.2 engines: {node: '>=16 || 14 >=14.17'} + hasBin: true dependencies: - fs.realpath: registry.npmjs.org/fs.realpath/1.0.0 - minimatch: registry.npmjs.org/minimatch/7.4.2 - minipass: registry.npmjs.org/minipass/4.2.5 - path-scurry: registry.npmjs.org/path-scurry/1.6.1 + foreground-child: registry.npmjs.org/foreground-child@3.1.1 + jackspeak: registry.npmjs.org/jackspeak@2.1.0 + minimatch: registry.npmjs.org/minimatch@9.0.0 + minipass: registry.npmjs.org/minipass@5.0.0 + path-scurry: registry.npmjs.org/path-scurry@1.7.0 dev: true - registry.npmjs.org/graceful-fs/4.2.10: - resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz} + registry.npmjs.org/graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz} name: graceful-fs - version: 4.2.10 + version: 4.2.11 dev: true - registry.npmjs.org/gzip-size/5.1.1: + registry.npmjs.org/gzip-size@5.1.1: resolution: {integrity: sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/gzip-size/-/gzip-size-5.1.1.tgz} name: gzip-size version: 5.1.1 engines: {node: '>=6'} dependencies: - duplexer: registry.npmjs.org/duplexer/0.1.2 - pify: registry.npmjs.org/pify/4.0.1 + duplexer: registry.npmjs.org/duplexer@0.1.2 + pify: registry.npmjs.org/pify@4.0.1 dev: true - registry.npmjs.org/has-flag/4.0.0: + registry.npmjs.org/has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz} name: has-flag version: 4.0.0 engines: {node: '>=8'} dev: true - registry.npmjs.org/husky/8.0.3: + registry.npmjs.org/husky@8.0.3: resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/husky/-/husky-8.0.3.tgz} name: husky version: 8.0.3 @@ -280,28 +335,52 @@ packages: hasBin: true dev: true - registry.npmjs.org/iconv-lite/0.5.2: + registry.npmjs.org/iconv-lite@0.5.2: resolution: {integrity: sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz} name: iconv-lite version: 0.5.2 engines: {node: '>=0.10.0'} dependencies: - safer-buffer: registry.npmjs.org/safer-buffer/2.1.2 + safer-buffer: registry.npmjs.org/safer-buffer@2.1.2 dev: true - registry.npmjs.org/inherits/2.0.4: + registry.npmjs.org/inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz} name: inherits version: 2.0.4 dev: true - registry.npmjs.org/isarray/1.0.0: + registry.npmjs.org/is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz} + name: is-fullwidth-code-point + version: 3.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmjs.org/isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz} name: isarray version: 1.0.0 dev: true - registry.npmjs.org/jsmin/1.0.1: + registry.npmjs.org/isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz} + name: isexe + version: 2.0.0 + dev: true + + registry.npmjs.org/jackspeak@2.1.0: + resolution: {integrity: sha512-DiEwVPqsieUzZBNxQ2cxznmFzfg/AMgJUjYw5xl6rSmCxAQXECcbSdwcLM6Ds6T09+SBfSNCGPhYUoQ96P4h7A==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/jackspeak/-/jackspeak-2.1.0.tgz} + name: jackspeak + version: 2.1.0 + engines: {node: '>=14'} + dependencies: + cliui: registry.npmjs.org/cliui@7.0.4 + optionalDependencies: + '@pkgjs/parseargs': registry.npmjs.org/@pkgjs/parseargs@0.11.0 + dev: true + + registry.npmjs.org/jsmin@1.0.1: resolution: {integrity: sha512-OPuL5X/bFKgVdMvEIX3hnpx3jbVpFCrEM8pKPXjFkZUqg521r41ijdyTz7vACOhW6o1neVlcLyd+wkbK5fNHRg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/jsmin/-/jsmin-1.0.1.tgz} name: jsmin version: 1.0.1 @@ -309,232 +388,303 @@ packages: hasBin: true dev: true - registry.npmjs.org/jsonfile/6.1.0: + registry.npmjs.org/jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz} name: jsonfile version: 6.1.0 dependencies: - universalify: registry.npmjs.org/universalify/2.0.0 + universalify: registry.npmjs.org/universalify@2.0.0 optionalDependencies: - graceful-fs: registry.npmjs.org/graceful-fs/4.2.10 + graceful-fs: registry.npmjs.org/graceful-fs@4.2.11 dev: true - registry.npmjs.org/lru-cache/7.18.3: - resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz} + registry.npmjs.org/lru-cache@9.1.1: + resolution: {integrity: sha512-65/Jky17UwSb0BuB9V+MyDpsOtXKmYwzhyl+cOa9XUiI4uV2Ouy/2voFP3+al0BjZbJgMBD8FojMpAf+Z+qn4A==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.1.tgz} name: lru-cache - version: 7.18.3 - engines: {node: '>=12'} + version: 9.1.1 + engines: {node: 14 || >=16.14} dev: true - registry.npmjs.org/minimatch/7.4.2: - resolution: {integrity: sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz} + registry.npmjs.org/minimatch@9.0.0: + resolution: {integrity: sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz} name: minimatch - version: 7.4.2 - engines: {node: '>=10'} + version: 9.0.0 + engines: {node: '>=16 || 14 >=14.17'} dependencies: - brace-expansion: registry.npmjs.org/brace-expansion/2.0.1 + brace-expansion: registry.npmjs.org/brace-expansion@2.0.1 dev: true - registry.npmjs.org/minimist/1.2.8: + registry.npmjs.org/minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz} name: minimist version: 1.2.8 dev: true - registry.npmjs.org/minipass/4.2.5: - resolution: {integrity: sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz} + registry.npmjs.org/minipass@5.0.0: + resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz} name: minipass - version: 4.2.5 + version: 5.0.0 engines: {node: '>=8'} dev: true - registry.npmjs.org/mkdirp/0.5.6: + registry.npmjs.org/mkdirp@0.5.6: resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz} name: mkdirp version: 0.5.6 hasBin: true dependencies: - minimist: registry.npmjs.org/minimist/1.2.8 + minimist: registry.npmjs.org/minimist@1.2.8 dev: true - registry.npmjs.org/once/1.4.0: + registry.npmjs.org/once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/once/-/once-1.4.0.tgz} name: once version: 1.4.0 dependencies: - wrappy: registry.npmjs.org/wrappy/1.0.2 + wrappy: registry.npmjs.org/wrappy@1.0.2 + dev: true + + registry.npmjs.org/path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz} + name: path-key + version: 3.1.1 + engines: {node: '>=8'} dev: true - registry.npmjs.org/path-scurry/1.6.1: - resolution: {integrity: sha512-OW+5s+7cw6253Q4E+8qQ/u1fVvcJQCJo/VFD8pje+dbJCF1n5ZRMV2AEHbGp+5Q7jxQIYJxkHopnj6nzdGeZLA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/path-scurry/-/path-scurry-1.6.1.tgz} + registry.npmjs.org/path-scurry@1.7.0: + resolution: {integrity: sha512-UkZUeDjczjYRE495+9thsgcVgsaCPkaw80slmfVFgllxY+IO8ubTsOpFVjDPROBqJdHfVPUFRHPBV/WciOVfWg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/path-scurry/-/path-scurry-1.7.0.tgz} name: path-scurry - version: 1.6.1 - engines: {node: '>=14'} + version: 1.7.0 + engines: {node: '>=16 || 14 >=14.17'} dependencies: - lru-cache: registry.npmjs.org/lru-cache/7.18.3 - minipass: registry.npmjs.org/minipass/4.2.5 + lru-cache: registry.npmjs.org/lru-cache@9.1.1 + minipass: registry.npmjs.org/minipass@5.0.0 dev: true - registry.npmjs.org/pend/1.2.0: + registry.npmjs.org/pend@1.2.0: resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/pend/-/pend-1.2.0.tgz} name: pend version: 1.2.0 dev: true - registry.npmjs.org/pify/4.0.1: + registry.npmjs.org/pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/pify/-/pify-4.0.1.tgz} name: pify version: 4.0.1 engines: {node: '>=6'} dev: true - registry.npmjs.org/pretty-bytes/5.6.0: + registry.npmjs.org/pretty-bytes@5.6.0: resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz} name: pretty-bytes version: 5.6.0 engines: {node: '>=6'} dev: true - registry.npmjs.org/process-nextick-args/2.0.1: + registry.npmjs.org/process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz} name: process-nextick-args version: 2.0.1 dev: true - registry.npmjs.org/pump/3.0.0: + registry.npmjs.org/pump@3.0.0: resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/pump/-/pump-3.0.0.tgz} name: pump version: 3.0.0 dependencies: - end-of-stream: registry.npmjs.org/end-of-stream/1.4.4 - once: registry.npmjs.org/once/1.4.0 + end-of-stream: registry.npmjs.org/end-of-stream@1.4.4 + once: registry.npmjs.org/once@1.4.0 dev: true - registry.npmjs.org/readable-stream/2.3.8: + registry.npmjs.org/readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz} name: readable-stream version: 2.3.8 dependencies: - core-util-is: registry.npmjs.org/core-util-is/1.0.3 - inherits: registry.npmjs.org/inherits/2.0.4 - isarray: registry.npmjs.org/isarray/1.0.0 - process-nextick-args: registry.npmjs.org/process-nextick-args/2.0.1 - safe-buffer: registry.npmjs.org/safe-buffer/5.1.2 - string_decoder: registry.npmjs.org/string_decoder/1.1.1 - util-deprecate: registry.npmjs.org/util-deprecate/1.0.2 + core-util-is: registry.npmjs.org/core-util-is@1.0.3 + inherits: registry.npmjs.org/inherits@2.0.4 + isarray: registry.npmjs.org/isarray@1.0.0 + process-nextick-args: registry.npmjs.org/process-nextick-args@2.0.1 + safe-buffer: registry.npmjs.org/safe-buffer@5.1.2 + string_decoder: registry.npmjs.org/string_decoder@1.1.1 + util-deprecate: registry.npmjs.org/util-deprecate@1.0.2 dev: true - registry.npmjs.org/rimraf/4.4.0: - resolution: {integrity: sha512-X36S+qpCUR0HjXlkDe4NAOhS//aHH0Z+h8Ckf2auGJk3PTnx5rLmrHkwNdbVQuCSUhOyFrlRvFEllZOYE+yZGQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/rimraf/-/rimraf-4.4.0.tgz} + registry.npmjs.org/rimraf@5.0.0: + resolution: {integrity: sha512-Jf9llaP+RvaEVS5nPShYFhtXIrb3LRKP281ib3So0KkeZKo2wIKyq0Re7TOSwanasA423PSr6CCIL4bP6T040g==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/rimraf/-/rimraf-5.0.0.tgz} name: rimraf - version: 4.4.0 + version: 5.0.0 engines: {node: '>=14'} hasBin: true dependencies: - glob: registry.npmjs.org/glob/9.2.1 + glob: registry.npmjs.org/glob@10.2.2 dev: true - registry.npmjs.org/safe-buffer/5.1.2: + registry.npmjs.org/safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz} name: safe-buffer version: 5.1.2 dev: true - registry.npmjs.org/safe-buffer/5.2.1: + registry.npmjs.org/safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz} name: safe-buffer version: 5.2.1 dev: true - registry.npmjs.org/safer-buffer/2.1.2: + registry.npmjs.org/safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz} name: safer-buffer version: 2.1.2 dev: true - registry.npmjs.org/streamifier/0.1.1: + registry.npmjs.org/shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz} + name: shebang-command + version: 2.0.0 + engines: {node: '>=8'} + dependencies: + shebang-regex: registry.npmjs.org/shebang-regex@3.0.0 + dev: true + + registry.npmjs.org/shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz} + name: shebang-regex + version: 3.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmjs.org/signal-exit@4.0.1: + resolution: {integrity: sha512-uUWsN4aOxJAS8KOuf3QMyFtgm1pkb6I+KRZbRF/ghdf5T7sM+B1lLLzPDxswUjkmHyxQAVzEgG35E3NzDM9GVw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.1.tgz} + name: signal-exit + version: 4.0.1 + engines: {node: '>=14'} + dev: true + + registry.npmjs.org/streamifier@0.1.1: resolution: {integrity: sha512-zDgl+muIlWzXNsXeyUfOk9dChMjlpkq0DRsxujtYPgyJ676yQ8jEm6zzaaWHFDg5BNcLuif0eD2MTyJdZqXpdg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz} name: streamifier version: 0.1.1 engines: {node: '>=0.10'} dev: true - registry.npmjs.org/string_decoder/1.1.1: + registry.npmjs.org/string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz} + name: string-width + version: 4.2.3 + engines: {node: '>=8'} + dependencies: + emoji-regex: registry.npmjs.org/emoji-regex@8.0.0 + is-fullwidth-code-point: registry.npmjs.org/is-fullwidth-code-point@3.0.0 + strip-ansi: registry.npmjs.org/strip-ansi@6.0.1 + dev: true + + registry.npmjs.org/string_decoder@1.1.1: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz} name: string_decoder version: 1.1.1 dependencies: - safe-buffer: registry.npmjs.org/safe-buffer/5.1.2 + safe-buffer: registry.npmjs.org/safe-buffer@5.1.2 + dev: true + + registry.npmjs.org/strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz} + name: strip-ansi + version: 6.0.1 + engines: {node: '>=8'} + dependencies: + ansi-regex: registry.npmjs.org/ansi-regex@5.0.1 dev: true - registry.npmjs.org/supports-color/7.2.0: + registry.npmjs.org/supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz} name: supports-color version: 7.2.0 engines: {node: '>=8'} dependencies: - has-flag: registry.npmjs.org/has-flag/4.0.0 + has-flag: registry.npmjs.org/has-flag@4.0.0 dev: true - registry.npmjs.org/tar-stream/1.6.2: + registry.npmjs.org/tar-stream@1.6.2: resolution: {integrity: sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz} name: tar-stream version: 1.6.2 engines: {node: '>= 0.8.0'} dependencies: - bl: registry.npmjs.org/bl/1.2.3 - buffer-alloc: registry.npmjs.org/buffer-alloc/1.2.0 - end-of-stream: registry.npmjs.org/end-of-stream/1.4.4 - fs-constants: registry.npmjs.org/fs-constants/1.0.0 - readable-stream: registry.npmjs.org/readable-stream/2.3.8 - to-buffer: registry.npmjs.org/to-buffer/1.1.1 - xtend: registry.npmjs.org/xtend/4.0.2 + bl: registry.npmjs.org/bl@1.2.3 + buffer-alloc: registry.npmjs.org/buffer-alloc@1.2.0 + end-of-stream: registry.npmjs.org/end-of-stream@1.4.4 + fs-constants: registry.npmjs.org/fs-constants@1.0.0 + readable-stream: registry.npmjs.org/readable-stream@2.3.8 + to-buffer: registry.npmjs.org/to-buffer@1.1.1 + xtend: registry.npmjs.org/xtend@4.0.2 dev: true - registry.npmjs.org/to-buffer/1.1.1: + registry.npmjs.org/to-buffer@1.1.1: resolution: {integrity: sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz} name: to-buffer version: 1.1.1 dev: true - registry.npmjs.org/typescript/4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz} + registry.npmjs.org/typescript@5.0.4: + resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz} name: typescript - version: 4.9.5 - engines: {node: '>=4.2.0'} + version: 5.0.4 + engines: {node: '>=12.20'} hasBin: true dev: true - registry.npmjs.org/universalify/2.0.0: + registry.npmjs.org/universalify@2.0.0: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz} name: universalify version: 2.0.0 engines: {node: '>= 10.0.0'} dev: true - registry.npmjs.org/util-deprecate/1.0.2: + registry.npmjs.org/util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz} name: util-deprecate version: 1.0.2 dev: true - registry.npmjs.org/wrappy/1.0.2: + registry.npmjs.org/which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/which/-/which-2.0.2.tgz} + name: which + version: 2.0.2 + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: registry.npmjs.org/isexe@2.0.0 + dev: true + + registry.npmjs.org/wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz} + name: wrap-ansi + version: 7.0.0 + engines: {node: '>=10'} + dependencies: + ansi-styles: registry.npmjs.org/ansi-styles@4.3.0 + string-width: registry.npmjs.org/string-width@4.2.3 + strip-ansi: registry.npmjs.org/strip-ansi@6.0.1 + dev: true + + registry.npmjs.org/wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz} name: wrappy version: 1.0.2 dev: true - registry.npmjs.org/xtend/4.0.2: + registry.npmjs.org/xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz} name: xtend version: 4.0.2 engines: {node: '>=0.4'} dev: true - registry.npmjs.org/yazl/2.5.1: + registry.npmjs.org/yazl@2.5.1: resolution: {integrity: sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==, registry: https://npm.pkg.github.com/sebastienrousseau, tarball: https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz} name: yazl version: 2.5.1 dependencies: - buffer-crc32: registry.npmjs.org/buffer-crc32/0.2.13 + buffer-crc32: registry.npmjs.org/buffer-crc32@0.2.13 dev: true diff --git a/scripts/backup.sh b/scripts/backup.sh index b8838447..70edf37a 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/banner.sh b/scripts/banner.sh index d6ed43ae..a2db04d1 100755 --- a/scripts/banner.sh +++ b/scripts/banner.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/build.sh b/scripts/build.sh index 26027ffb..490dcdda 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/clean.sh b/scripts/clean.sh index c049e68d..e80cffab 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/compile.sh b/scripts/compile.sh index 4a0f2e2e..f6ccaf53 100755 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/copy.sh b/scripts/copy.sh index 96c7299e..f84994a2 100755 --- a/scripts/copy.sh +++ b/scripts/copy.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/dotfiles.sh b/scripts/dotfiles.sh index 5a045968..3a08d3f5 100755 --- a/scripts/dotfiles.sh +++ b/scripts/dotfiles.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/download.sh b/scripts/download.sh index e745f76a..d5dbb895 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/help.sh b/scripts/help.sh index 6e999691..2f444b01 100755 --- a/scripts/help.sh +++ b/scripts/help.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/ssh.sh b/scripts/ssh.sh index e37ed38a..096fd265 100644 --- a/scripts/ssh.sh +++ b/scripts/ssh.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT diff --git a/scripts/unpack.sh b/scripts/unpack.sh index cd54d6c5..33157b31 100755 --- a/scripts/unpack.sh +++ b/scripts/unpack.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.464) - https://dotfiles.io -# Made with β™₯ in London, UK by @sebastienrousseau + +# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - +# Made with β™₯ in London, UK by @wwdseb # Copyright (c) 2015-2023. All rights reserved # License: MIT