Brief installation steps:

  1. Install git and zsh via yum;

  2. 'git clone' autojump and oh-my-zsh from an internet-connected host;

  3. Install autojump and oh-my-zsh manually according to the instructions on their websites.

Install

# yum install zsh
# yum install git
$ ssh-copy-id chad@10.21.3.31 (run "ssh-keygen" if have no key)
$ git clone chad@10.21.3.31:/home/chad/.oh-my-zsh
$ cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
$ git clone chad@10.21.3.31:/home/chad/docs/tmp/autojump (you need 'git clone' from internet on host 31 beforehand)
$ cd autojump;./install.sh (after installation, add some text into ~/.zshrc according to its prompt)
add "autojump" into "plugins" of ~/.zshrc
$ chsh -s /bin/zsh
restart zsh

Update

The server 10.0.2.74 is behind firewall, and the auto-update is blocked. The oh-my-zsh on laptop 10.21.3.139 is updated. To enable auto-update on server 74, modify update target repo: modify ~/.oh-my-zsh/.git/config: [remote "origin"] -> url from

https://github.com/robbyrussell/oh-my-zsh.git

to

lichao@10.21.3.139:/home/lichao/.oh-my-zsh/.git

Now you can update oh-my-zsh automatically or manually:

$ cd
$ upgrade_oh_my_zsh

Note:

  1. You must copy public key of 74 to 139:

    ssh-copy-id lichao@10.21.3.139

  2. You can't add "ssh://" before "lichao@...". It complains "ssh could not resolve hostname 10.21.3.139" , Why?

  3. On internet-connected Ubuntu host, you can install autojump with 'apt-get install autojump'.

最新文章

  1. EBS R12重启后无法进入登录页面
  2. js 猜数字游戏
  3. 最大熵的Java实现
  4. ASP.NET MVC5学习笔记之Action参数模型绑定之模型元数据和元数据提供
  5. Tricks Device (hdu 5294 最短路+最大流)
  6. C++ 静态、动态链接库的简单实现
  7. GIve Me A Welcome Hug!
  8. VS2010下测试程序性能瓶颈
  9. 基于perl面向对象开发的微信机器人
  10. 用DOS命令获取文件列表
  11. Effective Modern C++ Item 27:重载universal references
  12. 8、单选按钮(JRadioButton)和复选框(JCheckBox)
  13. Linux ls命令详解
  14. ubuntu16.04 查询ip,网关,dns信息
  15. Jenkins 利用HTML Publisher plugin实现HTML文档报告展示
  16. puppet(1)-简介
  17. react-native布局篇
  18. 教你用Visual Studio Code做PHP开发 - 微软官方工具,IDE中的黑马
  19. SQL注入之Sqli-labs系列第十八关(基于错误的用户代理,头部POST注入)
  20. 解题:POI 2014 Ant colony

热门文章

  1. 关于使用Flex中图片处理
  2. hugegraph 源码解读 —— 索引与查询优化分析
  3. hadoop学习(二)hadoop集群的启动
  4. 【Quartz】Quartz存储与持久化-基于quartz.properties的配置
  5. buu 新年快乐
  6. SwaggerHub 更快,标准化的API设计软件
  7. 【网络IO系列】IO的五种模型,BIO、NIO、AIO、IO多路复用、 信号驱动IO
  8. Antilibrary能拯救稍后不读吗
  9. [刘阳Java]_美团点评2018届校招面试总结_Java后台开发【转载】
  10. springMVC-12-整合spring和springmvc