autojump的安装和使用

1)克隆autojump

cd /opt
git clone git://github.com/joelthelion/autojump.git

2)安装

cd autojump
./install.py

3)配置环境便变量

~/.bashrc或者~/.zshrc文件末尾加上一行代码

[[ -s ~/.autojump/etc/profile.d/autojump.sh  ]] && . ~/.autojump/etc/profile.d/autojump.sh

刷新配置文件

source ~/.bashrc
# 或
source ~/.zshrc

4)使用

退出shell,重新进入

j -v
autojump v22.5.3

正常使用如下

# 跳转到backup目录
j backup

autojump是根据使用习惯自动调整的,因此使用的越多就越准确

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2021-09-12
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案