Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utility module's settings not working #2095

Open
billkewl opened this issue Aug 26, 2024 · 0 comments
Open

utility module's settings not working #2095

billkewl opened this issue Aug 26, 2024 · 0 comments

Comments

@billkewl
Copy link

billkewl commented Aug 26, 2024

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 '
  1. login sudo su - testuser

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: 9195b66
  • ZSH version: zsh 5.9 (x86_64-debian-linux-gnu)
  • OS information: Debian 12 bookworm x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@billkewl and others