From 74508ad87483e092913a117671dbcf129449c93c Mon Sep 17 00:00:00 2001 From: sha1n Date: Wed, 28 Jan 2026 23:49:56 +0200 Subject: [PATCH] fix: correct typographical errors in function names and help text - Renamed __pe_generate_present_file_name to __pe_generate_preset_file_name. - Renamed __pe_present_file_path_from to __pe_preset_file_path_from. - Corrected 'pushs' to 'pushes' in peth help text. --- peth-presets.zsh | 12 ++++++------ peth.zsh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/peth-presets.zsh b/peth-presets.zsh index d424f41..30044d8 100644 --- a/peth-presets.zsh +++ b/peth-presets.zsh @@ -3,7 +3,7 @@ source "$PATH_ETHIC_HOME/lib.zsh" # Loads a saved preset from disk function __pe_load() { local preset_name=$(__pe_preset_name_from "$1") - local preset_file_name=$(__pe_generate_present_file_name "$preset_name") + local preset_file_name=$(__pe_generate_preset_file_name "$preset_name") local preset_path="$PATH_ETHIC_CONFIG/$preset_file_name" if [ -f "$preset_path" ]; then @@ -26,7 +26,7 @@ function __pe_load() { # Saves or overwrites a preset to disk function __pe_save() { local preset_name=$(__pe_preset_name_from "$1") - local preset_file_name=$(__pe_generate_present_file_name "$preset_name") + local preset_file_name=$(__pe_generate_preset_file_name "$preset_name") local preset_path="$PATH_ETHIC_CONFIG/$preset_file_name" echo "PATH_ETHIC_HEAD=$PATH_ETHIC_HEAD" >"$preset_path" @@ -49,7 +49,7 @@ function __pe_remove_preset() { return fi - local preset_file_path=$(__pe_present_file_path_from "$1") + local preset_file_path=$(__pe_preset_file_path_from "$1") if [[ ! -f "$preset_file_path" ]]; then __pe_log_warning "preset file '$1' does not exist" else @@ -87,13 +87,13 @@ function __pe_preset_name_from() { echo "$preset_name" } -function __pe_present_file_path_from() { +function __pe_preset_file_path_from() { local preset_name=$(__pe_preset_name_from "$1") - local preset_file_name=$(__pe_generate_present_file_name "$preset_name") + local preset_file_name=$(__pe_generate_preset_file_name "$preset_name") echo "$PATH_ETHIC_CONFIG/$preset_file_name" } -function __pe_generate_present_file_name() { +function __pe_generate_preset_file_name() { echo "$1.preset" } diff --git a/peth.zsh b/peth.zsh index 62be0bf..c74cd3e 100644 --- a/peth.zsh +++ b/peth.zsh @@ -21,7 +21,7 @@ Available Command: show - shows the effective PATH and your current session settings list - lists all effective PATH elements in the current session - push - pushs an element to the begining of the current session PATH + push - pushes an element to the begining of the current session PATH append - appends an element to the end of the current session PATH rm - finds and removes an element from the session PATH flip - flips the order of your set prefix and suffix in the current