`fasd` make me 10x more productive under shell

  |   Source

I will show you my typical workflow with fasd.

Quick visit my work folder named "NeonSite":

$ z neon
4       1.701      /home/chenbi/work/raas/current/webapp/NeonSite/css/src/page

3 22.995 /home/chenbi/work/raas/current/webapp/NeonSite/css

2 40.005 /home/chenbi/work/raas/current/webapp/NeonSite/js

1 5292 /home/chenbi/work/raas/current/webapp/NeonSite

I press '1' and go into the folder "/home/chenbi/work/raas/current/webapp/NeonSite". Awesome, eh?

Copy file 'hello.c' to a folder named "NeonSite":

$ cp ~/hello.c s neon

5 1.701 /home/chenbi/work/raas/current/webapp/NeonSite/css/src/page

4 4.41 /home/chenbi/work/raas/current/webapp/NeonSite/js/gallery2.js

3 22.995 /home/chenbi/work/raas/current/webapp/NeonSite/css

2 40.005 /home/chenbi/work/raas/current/webapp/NeonSite/js

1 5292 /home/chenbi/work/raas/current/webapp/NeonSite

I press '1' and 'hello.c' is copied into the corresponding folder.

In order to install and setup fasd, you need only put fasd under some folder in $PATH and add the below code into you $HOME/.bashrc.

eval "$(fasd --init auto)"

alias z='fasd_cd -di'

Please note you can use any POSIX shell (zsh, for example) with fasd. Check fasd's documentation for details.

At last, I want to thank clvv (Wei Dai) for designing such a elegant and beautiful tool.

你是我的大救星(you're my lifesaver),Wei Dai!

Comments powered by Disqus