diff options
| author | Anton Bobov <anton@bobov.name> | 2025-03-09 20:49:24 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2025-03-09 20:51:07 +0500 |
| commit | bf724a41fb41e86f54a391c14d71cb05b48d0a73 (patch) | |
| tree | 2c9db4a727436c2f1a93a62c3e01a5b45c596b24 /files/.zsh/rc/S20_eget | |
| parent | 7ab2d72100ce6a3d47221099d61e18c9ade6ab73 (diff) | |
zsh: Change rm alias
Remove rm alias to tash-put, use rrm instead.
Diffstat (limited to 'files/.zsh/rc/S20_eget')
| -rw-r--r-- | files/.zsh/rc/S20_eget | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/.zsh/rc/S20_eget b/files/.zsh/rc/S20_eget index cdd9713..2a90f3b 100644 --- a/files/.zsh/rc/S20_eget +++ b/files/.zsh/rc/S20_eget @@ -8,7 +8,7 @@ function () { config="$__EGET_CONFIG" if [ -f "$__EGET_CONFIG_LOCAL" ] ; then config=$(mktemp -t eget.config.XXXXX --suffix .toml) - trap "rm '$config'" EXIT + trap "command rm '$config'" EXIT cat "$__EGET_CONFIG" "$__EGET_CONFIG_LOCAL" >"$config" 2>/dev/null fi @@ -25,7 +25,7 @@ function () { y|Y) unset -f eget temp_file=$(mktemp) - trap 'rm -f "$temp_file"' EXIT + trap 'command rm -f "$temp_file"' EXIT mkdir -p "$(dirname "$__EGET_LOCATION")" curl -o "$temp_file" "$EGET_SCRIPT_URL" echo "$EGET_SCRIPT_CHECKSUM $temp_file" | shasum --algorithm 256 --check --quiet |
