mise
mise copied to clipboard
Modifying zshrc causes other commands to behave incorrectly
Describe the bug Some commands behave strangely.
$ bat .tool-versions
[bat error]: Could not parse pager command.
$ echo $PAGER
bat"
To see a list of supported npm commands, run:
npm help:/Users/kentaro/.yarn/bin:/Users/kentaro/bin:/Users/kentaro/.yarn/bin
To Reproduce
# environment
Apple M1 Pro
maxOs: 13.6(22G120)
$ brew install rtx
# .zshrc
...
export PAGER='bat'
...
eval "$(/opt/homebrew/bin/rtx activate zsh)"
bat works correctly after comment out eval "$(/opt/homebrew/bin/rtx activate zsh)"
and $ source .zshrc
Expected behavior bat works correctly
rtx doctor
output
rtx version:
2023.9.1 macos-arm64 (c6d59d7 2023-09-13)
build:
Target: aarch64-apple-darwin
Features: DEFAULT, NATIVE_TLS, OPENSSL
Built: Wed, 13 Sep 2023 14:18:58 +0000
Rust Version: rustc 1.72.0 (5680fa18f 2023-08-23)
Profile: release
shell:
/bin/zsh
zsh 5.9 (x86_64-apple-darwin22.0)
rtx data directory:
/Users/kentaro/.local/share/rtx
rtx environment variables:
RTX_SHELL=zsh
settings:
{"always_keep_download": "false", "always_keep_install": "false", "asdf_compat": "false", "disable_default_shorthands": "false", "disable_tools": "[]", "experimental": "false", "jobs": "4", "legacy_version_file": "true", "legacy_version_file_disable_tools": "[]", "log_level": "INFO", "missing_runtime_behavior": "warn", "plugin_autoupdate_last_check_duration": "10080", "raw": "false", "trusted_config_paths": "[]", "verbose": "false", "yes": "false"}
config files:
/Users/kentaro/.tool-versions
plugins:
deno https://github.com/asdf-community/asdf-deno.git#0e14a50
go (core)
java (core)
node (core)
python (core)
ruby (core)
rust https://github.com/code-lever/asdf-rust.git#95acf4f
terraform https://github.com/asdf-community/asdf-hashicorp.git#0346f5d
toolset:
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
No problems found