安装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.

文章来源于互联网,如有雷同请联系站长删除:2019-07-01 centos安装autojump,使用了python 2.7,懒得安装新版python了

发表评论