sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
14.02k stars 4.49k forks source link

utility module's settings not working #2095

Open billkewl opened 3 months ago

billkewl commented 3 months ago

Description

changing utility module's default behaviors by adding zstyle in .zshrc has no effect

Expected behavior

downloader alias enabled while safe-ops and no-autocorrect/no-globbing aliases disabled

Actual behavior

all aliases are set to default values

Steps to Reproduce

  1. add a new user
  2. edit .zshrc file. for troubleshooting, i only added bare minimum of my actual config
    
    source /usr/share/zsh-antigen/antigen.zsh

zstyle ':prezto::' color 'yes' zstyle ':prezto:module:prompt' theme 'pure' zstyle ':prezto:module:prompt' pwd-length 'short' zstyle ':prezto:module:autosuggestions' color 'yes' zstyle -s ':prezto:module:utility:download' helper 'aria2c' zstyle ':prezto:module:utility' correct 'no' zstyle ':prezto:module:utility' safe-ops no zstyle ':prezto:load' pmodule \ 'utility'\ 'completion' \ 'history-substring-search' \ 'autosuggestions' \ 'prompt' \

antigen use prezto

antigen apply

test correction and globbing

alias sudo='sudo '


3. login `sudo su - testuser` 
4. 
test if no auto-correction, no globbing aliases are disabled

% sudo rsync sudo: noglob: command not found % sudo mv sudo: nocorrect: command not found

test if safe ops aliases are disabled
`% sudo \rm /tmp/testfile`
test if downloader alias is set

% get curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information % which get get: aliased to curl --continue-at - --location --progress-bar --remote-name --remote-time


### Versions

  - Prezto commit: https://github.com/sorin-ionescu/prezto/commit/9195b66161b196238cbd52a8a4abd027bdaf5f73
  - ZSH version: zsh 5.9 (x86_64-debian-linux-gnu)
  - OS information: Debian 12 bookworm x64