autojump由於某種原因,Archlinux不能在zsh
中工作。
雖然如果我切換到bash
它工作正常。無法使用archlinux上的zsh源自動跳轉腳本
$ sudo pacman -S autojump
autojump:不上zsh
$ source /usr/etc/profile.d/autojump.sh
$ j
zsh: command not found: j
$ source /usr/etc/profile.d/autojump.bash
$ j
zsh: command not found: j
autojump工作:在bash
$ bash
(bash) $ source /usr/etc/profile.d/autojump.bash
(bash) $ j
autojump: ...
我的工作環境:
$ echo $SHELL
/bin/zsh
$ zsh --version
zsh 5.0.2 (x86_64-unknown-linux-gnu)
我在OS X上使用了自動跳轉功能zsh
,所以它對我來說也不像zsh特定的問題。
在我Antergos(基於arch)autojump被放置在/etc/profile.d/autojump.zsh上,我的oh-my-zsh有一個j鍵的別名。把 [[-s /etc/profile.d/autojump.zsh]] &&。 /etc/profile.d/autojump。zsh 在你的〜/ .zshrc – SergioAraujo