Commit Graph

34 Commits

Author SHA1 Message Date
c92eb49c05 Added conditional check for zrep initialization.
Created files .addons and installed.json during zrep initialization.
2024-03-15 22:35:41 +01:00
17355e5779 Title: Fix downloader selection logic in zrep script
- Fixed logical OR conditions to logical AND in downloader selection.
- Improved user input validation for downloader selection.
- Added error messages for invalid downloader choices.
- Updated zrep script for correct downloader selection logic.
2024-03-15 22:19:23 +01:00
53bd010da6 Title: Update zrep script with downloader choice validation
- Fixed downloader choice validation in zrep_init function
- Moved zrep_fpath and autoload commands to else block for existing config handling
2024-03-15 22:16:33 +01:00
de3bb15662 Title: Update zrep script with enhanced downloader function
- Added user prompt to choose downloader command
- Enhanced zrep_download_package function with retry logic
- Updated zrep_help function for better readability
- Added zrep_package_info function to display package details
2024-03-15 22:10:39 +01:00
17c9058be5 Added 'curl' to the list of required programs in zrep script. 2024-03-15 11:53:45 +01:00
d0210580b1 Refactor zrep_list_installed_packages function
- Added zmodload zsh/regex for regex support
- Changed grep to regex match for package activation check
- Updated zrep_msg output format
2024-03-14 16:24:48 +01:00
40adc05b9b Update zrep script:
- Changed comment to define default path for .zreprc
- Updated comment to define list of colors available for themes
- Removed clearing of previous theme settings
- Added function to check if a string exists in ~/.zshrc
- Added function to check for required dependencies
- Updated zrep_init function to include checking for dependencies
- Updated zrep_init function to create default file and directory structure
- Updated zrep_init function to check for existing zini path in .zshrc
- Updated zrep_init function to check for existing source command for .zrep_addons in .zshrc
- Updated zrep_init function to create or update .zrep_addons file
- Updated zrep_check_for_updates function to display message if no updates found
- Removed redundant message in zrep_update_package function
- Updated zrep_download_package function to display download attempt message
- Updated zrep_download_package function to display download successful message
- Updated zrep_install_package function to include fetching package information
- Removed commented out line in zrep_install_package function
- Removed commented out line in zrep_parse_package_name function
2024-03-13 22:52:47 +01:00
a492260ec9 Update zrep version to 0.0.2
- Updated zrep version to 0.0.2
- Improved error messages for package not found
- Enhanced output messages for installed packages
- Improved error handling for package installation
- Enhanced error messages for package not installed
- Added 'del' alias for 'remove' command
- Improved usage message for 'remove' command
2024-03-13 07:25:59 +01:00
de29949486 Update zrep script with new color scheme and theme loading functionality.
- Added new base_colors associative array for color definitions.
- Implemented zrep_load_theme function to load themes.
- Modified zrep_msg function to use colors from the current theme.
- Updated zrep_version function to use theme colors for help and info.
- Adjusted zrep_list_installed_packages to use base_colors for color definitions.
- Enhanced zrep_update_package with informative messages.
- Added zrep_download_package function for downloading packages.
- Improved zrep_install_package to use zrep_download_package for downloads.
- Updated main function to load the global theme.
2024-03-12 23:52:10 +01:00
7ddcd309c5 Added export statement to fix variable assignment issue in zrep script.
- Fixed variable assignment in zrep script.
2024-03-12 18:07:33 +01:00
548012d7cc Update zrep script with zrep_installed_json function
- Added zrep_installed_json function to handle installed.json existence
- Updated zrep_update_installed_json to use zrep_installed_json
- Updated zrep_list_installed_packages to use zrep_installed_json
- Updated zrep_list_package to use zrep_installed_json
- Updated zrep_remove_package to use zrep_installed_json
- Updated zrep_check_if_installed to use zrep_installed_json
- Updated zrep_check_for_updates to use zrep_installed_json
- Updated zrep_install_package to remove temporary zip files
- Updated zrep_parse_installed_json to use zrep_installed_json
- Updated zrep_parse_package_name to use zrep_installed_json
- Updated zrep_enable and zrep_disable to remove unnecessary sourcing and function calls
- Updated zrep_read_usage to use zrep_installed_json
2024-03-12 18:06:06 +01:00
4d249d2bf1 Update zrep initialization to include global settings and reminder to source zshrc. Check for 'zini' path in fpath before adding. Enhance update logic to handle specific package updates. Improve update messaging and handle no updates found case. Refactor update package function for better readability. Add conditional help message for 'init' command if config file doesn't exist. 2024-03-12 14:58:13 +01:00
849d4e46a4 Updated zrep script to include functions for checking updates, updating specific packages, and installing packages. Added logic to handle package installation, removal, and updating. Improved error handling and messaging for better user experience. Enhanced functionality for managing zrep packages efficiently. 2024-03-11 22:15:43 +01:00
77eb36815b Minor changes and cleanups 2024-03-10 14:03:27 +01:00
02ae618bf1 Clean up comments. Embrace variables. 2024-03-10 13:31:19 +01:00
dbc9a8b6dd Fix zrep script to correctly load addons by moving the 'done' statement inside the 'if' block. 2024-03-10 10:02:08 +01:00
2ebb0fd3b7 Update zrep logo in README.md
Enhance version string color in zrep script
Add bold style to version number in zrep script
Fix autoload command in zrep script
Improve color styling for active/inactive packages in zrep script
2024-03-10 09:49:34 +01:00
cb15f80042 Update README.md 2024-03-09 09:12:02 +01:00
4b6eb5734c revert d7e0a5ec4c
revert Update README.md
2024-03-09 09:09:28 +01:00
d7e0a5ec4c Update README.md 2024-03-09 09:08:51 +01:00
5562ae7986 Update zrep initialization to use ZREP_CONFIG variable for configuration file path. Prompt user for zrep installation directory if ZREP_CONFIG doesn't exist. Add source command for .zrep_addons in .zshrc if not present. Create or update .zrep_addons file with addon handling logic. Modify zrep_enable and zrep_disable functions to use ZREP_CONFIG variable. Update main function to call zrep_load_config. Ensure proper sourcing of .zrep_addons after enabling/disabling packages. Include necessary error handling and informative messages. - Sat, 09 Mar 2024 00:36:09 +0100 2024-03-09 00:36:09 +01:00
5f7c437701 Update zrep script with color definitions using associative array and refactor color usage in functions. Add functionality to display package-specific help from USAGE file. - Wed, 06 Mar 2024 18:33:14 +0100 2024-03-06 18:33:14 +01:00
e3ee9e49a9 Update zrep script:
- Commented out unused variables and echo statements.
- Added check to create installed.json if not exists.
- Improved jq command to update installed.json.
- Refactored zrep_list_installed_packages function.
- Refactored zrep_list_package function to concatenate package names.
- Updated zrep_install_package to use a temporary directory.
- Refactored zrep_enable and zrep_disable functions.
- Added zrep_parse_package_name function for package name parsing. - Mon, 04 Mar 2024 23:40:02 +0100
2024-03-04 23:40:02 +01:00
d1f2b04d5b Update zrep script:
- Added `zrep_main_version_string` function to display version string.
- Modified `zrep_remove_package` function to safely remove directories and update `installed.json`.
- Updated `zrep_help` function to include `enable` and `disable` commands.
- Minor formatting improvements and code cleanup. - Mon, 04 Mar 2024 22:36:49 +0100
2024-03-04 22:36:49 +01:00
469ff49206 Add zrep_enable and zrep_disable functions
- Added zrep_enable function to enable packages in zsh
- Added zrep_disable function to disable packages in zsh
- Updated zrep_help function to include enable and disable commands
- Updated main function to handle enable and disable commands
- Minor formatting and comment improvements in zrep script - Mon, 04 Mar 2024 22:17:21 +0100
2024-03-04 22:17:21 +01:00
bc1c7f4e4f Fix directory removal logic in zrep_remove_package function
- Corrected the logic to check if the first letter directory is empty before deletion
- Updated the README with work-in-progress status and a call for help and feedback - Mon, 04 Mar 2024 20:34:23 +0100
2024-03-04 20:34:23 +01:00
ad7ef3d777 - Refactored zrep_list_installed_packages function to display package status (Active/Inactive).
- Updated zrep_remove_package function to remove package from installed.json after successful removal.
- Added zrep_install_package function to download and install packages from a remote server.
- Minor code cleanup and formatting improvements. - Mon, 04 Mar 2024 20:20:33 +0100
2024-03-04 20:20:33 +01:00
720fc65095 Create space - Fri, 01 Mar 2024 12:22:39 +0100 2024-03-01 12:22:39 +01:00
588848b644 Lots of changes to a few functions - Thu, 29 Feb 2024 16:53:22 +0100 2024-02-29 16:53:22 +01:00
cd6e4c51b5 Let's see 2024-02-29 06:49:06 +01:00
03c4f9fcaf Big update. The frontend is close to working. - Wed, 28 Feb 2024 23:41:09 +0100 2024-02-28 23:41:09 +01:00
fe7b5544e4 Add name and version. Add dep on zini. 2024-02-27 18:39:09 +01:00
41f0709722 Initial commit of zrep 2024-02-27 16:50:07 +01:00
08e19f9abf Initial commit 2024-02-27 16:48:58 +01:00