在 Windows Subsystem for Linux 中使用 autojump 时,会出现 autojump_chpwd:4: nice(5) failed: operation not permitted
的错误提示并且到达了对应的目录,虽说不影响使用,但错误提示仍非常恼人。
操作步骤
以 zsh 为例,在 ~/.zshrc
中添加
1 | unsetopt BG_NICE |
示例 .zshrc
.zshrc for autojump on wsl on GitHub Gist
1 | # If you come from bash you might have to change your $PATH. |
参考
autojump_chpwd:4: nice(5) failed: operation not permitted · Issue #474 · wting/autojump · GitHub