Commit Graph

65 Commits

Author SHA1 Message Date
d0136a9b19 Update downloader commands in zrep_global_downloader and zrep_download_package functions. Fixed ZSH_SCRIPT variable usage. 2024-04-07 19:06:55 +02:00
933b27b167 Update zrep functions to use function keyword for consistency.
- Updated `zrep_load_theme` to use `function` keyword.
- Updated `zrep_search_url_encode` to use `function` keyword.
- Updated `zrep_search` to use `function` keyword.
2024-04-07 01:28:51 +02:00
2ccef547a8 Update zpi version to 0.0.9
- Updated version to 0.0.9
- Updated URLs to point to zpi instead of zrep
- Updated initialization messages to refer to zpi
- Updated messages to reflect zpi instead of zrep
2024-04-06 18:43:49 +02:00
30ffb0f6bb Update zpi tool with new features and improvements:
- Updated tool name to "Zrep Package Installer"
- Modified installation directory prompt
- Renamed commands related to zrep to zpi
- Updated help messages and usage instructions
- Improved package management functionality
2024-04-06 00:24:26 +02:00
8569de68ec Update package manager name from zrep to zpi and adjust related text and commands accordingly. 2024-04-05 22:01:39 +02:00
aee45ba2ee Added zsh functions for managing zrep packages. Fixed bugs in zrep functions. Updated zrep version to 0.0.7. 2024-04-05 21:43:51 +02:00
ae6becb2cc Updated zrep script to version 0.0.7 with new features and improvements.
- Updated version to 0.0.7
- Added URL-encoding function for search queries
- Implemented search function to query and process JSON response
- Refactored package removal function
- Added check for 'jq' installation
- Improved package installation process
- Enhanced update package functionality
- Added search command to search for authors, packages, or descriptions
2024-04-05 00:36:24 +02:00
8ea89b837b Added search function link to zrep website.
Added note about future search function in zrep script.
2024-04-04 13:12:53 +02:00
e37233009c Update README with information about zrep tool and its usage. Added a section explaining what zrep is and how to share scripts. 2024-04-04 13:07:14 +02:00
6399a20ed1 Updated zrep version to 0.0.6
- Updated version to 0.0.6
- Changed repo_url to https://zrep.kekepower.com
- Added reminder to copy 'zrep' to a directory in 'PATH'
- Added reminder to source ${zshrc_file} after installation.
2024-04-03 13:57:43 +02:00
2e0d42c040 Updated zrep version to 0.0.5
- Updated version to 0.0.5
- Added validation for package name format
- Display error message if package name format is incorrect
2024-04-02 21:57:39 +02:00
8f34150a78 Update zrep script to version 0.0.4
- Updated version number to 0.0.4
- Added timestamp to remoteFile URL
- Improved update_package function logic
- Added prompt for user confirmation before updating
- Updated downloader commands for curl, wget, and wget2
- Improved error handling in download_package function
- Improved installation process in install_package function
2024-03-31 15:14:43 +02:00
c4c384c799 Use PNG instead of SVG for logo 2024-03-17 09:05:41 +01:00
d0fed1720e Update zrep to version 0.0.3. New zrep-logo.svg. Bug fixes and enhancements. 2024-03-17 09:04:23 +01:00
c3962c72a0 Title: Fix debug message in zrep script
- Updated debug message in zrep script to include a newline character.
- Improved error handling for when package is not found.
2024-03-16 00:29:32 +01:00
255649a53e Title: Update zrep function to exit instead of return
- Changed `return 1` to `exit 1` in zrep_parse_remote function.
2024-03-16 00:29:07 +01:00
a64e876b7d Added return statement when package is not found in zrep_parse_remote function.
- Added return 1 when package is not found.
2024-03-16 00:27:27 +01:00
a50a99183b Added touch command to create installed.json if not found.
Included error message for clarity.
2024-03-16 00:18:25 +01:00
fcf519dd68 Added conditional check to load config and theme only if argument is not "init". 2024-03-16 00:14:36 +01:00
dd518d733b Refactor zrep_load_config function in zrep script:
- Indent zrep_init call properly.
- Add else block to handle setup abort.
- Provide feedback message for setup abortion.
2024-03-16 00:11:00 +01:00
7243ae4235 Added user interaction for setting up zrep for the first time.
- Display welcome message when running zrep for the first time.
- Prompt user to set up zrep if config file is not found.
- Added user confirmation before running 'zrep init'.
2024-03-16 00:10:00 +01:00
3345f78b7a Update zrep script:
- Comment out unused variable assignment.
- Add installation path to theme installation message.
- Prompt user to initialize config if not found.
- Provide welcome message for first-time users.
2024-03-16 00:06:08 +01:00
ba1829953c Added directory creation for install_dir
Added autoload for zini
Added creation of .addons file
Added installation of Classic theme
Updated zrep initialization process
2024-03-15 23:58:20 +01:00
03adceec67 Title: Update unzip command in zrep script
- Changed unzip command to use quiet mode
- Ensured overwrite of existing files during extraction
- Improved error handling for unzip operation
2024-03-15 23:23:20 +01:00
7da1c425f4 Title: Fix unzip command order in zrep script
Changes:
- Reordered unzip command options in zrep script for correct execution.
2024-03-15 23:21:29 +01:00
3830e58ebb Update unzip command in zrep script to use -aa flag for better compatibility.
- Use `-aa` flag in unzip command for better compatibility with various zip formats.
2024-03-15 23:19:05 +01:00
4337b13a28 Update zrep script with autoload fix and debug message in zrep_install_package function.
- Fix autoload command in zrep script.
- Add debug message in zrep_install_package function.
2024-03-15 23:14:47 +01:00
e314131622 Update zrep script to display a newline before "No packages installed" message.
Add newline character before the message to improve readability.
2024-03-15 22:56:38 +01:00
b160120893 Update zrep script to handle cases where installed.json is empty or contains no packages. Add checks to handle empty JSON objects or arrays. 2024-03-15 22:55:52 +01:00
d4e355cf32 Update zrep script with improvements in file existence check and script entry handling. Fix JSON file creation and ensure it's not empty. Refactor script entry update/addition logic for better clarity. Rearrange curl command options for zrep_download_package function. 2024-03-15 22:45:37 +01:00
c297c2a551 Update curl command in zrep script for downloading packages. Fix duplicate output redirection. 2024-03-15 22:39:24 +01:00
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