2019-07-01 centos安装autojump,使用了python 2.7,懒得安装新版python了

安装autojump大致流程

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

cd autojump
python install.py

install 之后会输出提示行, 将其追加到 .bashrc 即可,比如我的:

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

安装过程记录如下

[root@robert-docker-211 ~]# git clone git://github.com/wting/autojump.git
Cloning into 'autojump'...
remote: Enumerating objects: 3280, done.
remote: Total 3280 (delta 0), reused 0 (delta 0), pack-reused 3280
Receiving objects: 100% (3280/3280), 796.70 KiB | 372.00 KiB/s, done.
Resolving deltas: 100% (1985/1985), done.

[root@robert-docker-211 ~]# cd autojump

[root@robert-docker-211 autojump]# install.py
-bash: install.py: command not found

[root@robert-docker-211 autojump]# python install.py
Installing autojump to /root/.autojump ...
creating directory: /root/.autojump/bin
creating directory: /root/.autojump/share/man/man1
creating directory: /root/.autojump/etc/profile.d
creating directory: /root/.autojump/share/autojump
copying file: ./bin/autojump -> /root/.autojump/bin
copying file: ./bin/autojump_argparse.py -> /root/.autojump/bin
copying file: ./bin/autojump_data.py -> /root/.autojump/bin
copying file: ./bin/autojump_match.py -> /root/.autojump/bin
copying file: ./bin/autojump_utils.py -> /root/.autojump/bin
copying file: ./bin/icon.png -> /root/.autojump/share/autojump
copying file: ./docs/autojump.1 -> /root/.autojump/share/man/man1
creating directory: /root/.autojump/etc/profile.d
creating directory: /root/.autojump/share/autojump
creating directory: /root/.autojump/functions
copying file: ./bin/autojump.sh -> /root/.autojump/etc/profile.d
copying file: ./bin/autojump.bash -> /root/.autojump/share/autojump
copying file: ./bin/autojump.fish -> /root/.autojump/share/autojump
copying file: ./bin/autojump.zsh -> /root/.autojump/share/autojump
copying file: ./bin/_j -> /root/.autojump/functions

Please manually add the following line(s) to ~/.bashrc:

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

Please restart terminal(s) before running autojump.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容