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

终端目录跳转软件autojump和z #103

Open
itgoyo opened this issue Dec 14, 2018 · 1 comment
Open

终端目录跳转软件autojump和z #103

itgoyo opened this issue Dec 14, 2018 · 1 comment

Comments

@itgoyo
Copy link
Owner

itgoyo commented Dec 14, 2018

之前我们在终端目录跳转切换都是用cd,但是这个有一个缺点就是要具体输出前面的路径一点都不便捷。这里推荐两个比较智能的软件分别是autojumpz。由于z体积比较小还有速率比较快,所以比较推荐大家使用z

autojump

地址:https://github.com/wting/autojump

MANUAL

Grab a copy of autojump:

git clone git://github.com/wting/autojump.git

Run the installation script and follow on screen instructions.

cd autojump
./install.py or ./uninstall.py

OS X

Homebrew is the recommended installation method for Mac OS X:

brew install autojump

MacPorts is also available:

port install autojump

Windows

Windows support is enabled by clink which should be installed prior to installing autojump.

注意!!!

要成功使用,必须要先cd目录,这样子才能生成相应的目录记录,这样子才能使用快捷跳转

z

地址:https://github.com/rupa/z

配置

已安装zsh

.zshrc文件默认有一句plugins=(git),由于zsh默认带有 Z ,所以在这里把它添加进去就行,改为plugins=(git z)

没安装zsh

在源码仓库里可以看到,Z 其实也就是一个 .sh 脚本,所以不管你用的是什么Terminal,只用按以下步骤就能马上使用 Z

  1. 将z.sh下载到本地目录
  2. 在根目录对应Terminal的文件(如果是默认的,一般是.bashrc)里加上source 和z.sh所在目录
  3. 之后重启Terminal就可以开始用了

注意!!!

要成功使用,必须要先cd目录,这样子才能生成相应的目录记录,这样子才能使用快捷跳转

@itgoyo itgoyo changed the title 终端目录跳转软件autojump 终端目录跳转软件autojump和z Dec 14, 2018
@itgoyo
Copy link
Owner Author

itgoyo commented May 27, 2020

如果出现了zsh: command not found: j,请在.zshrc文件增加plugins=(autojump)

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

1 participant