Skip to content

afeiship/ushell-module-autojump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ushell-module-autojump

Unix like shell module for autojump.

installation

npm i -S @jswork/ushell-module-autojump

how to find autojump

  • whereis autojump.sh
  • MAC OSX:
brew install autojump
## 如果没有这个,下面的 link 会报错
cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var Frameworks
brew link autojump

## 这个已经在 ushell-module-autojump 里处理过了
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
  • centos:
yum install autojump;
source /etc/profile.d/autojump.sh;
echo '. /usr/share/autojump/autojump.sh'>>~/.bashrc;
  • ubuntu:
apt-get install autojump;

## add to .bashrc:
source /usr/share/autojump/autojump.sh;

resources