平时有很多项目的目录,需要频繁的在这些目录中切换,效率很低。

之前总是在shell里ctrl + r 或者 cd -,后来目录多了这招也不好使了

我是个懒人,什么事重复三遍就不能忍

然后就用Python造了个命令go,可以方便智能的随意切换目录

先上代码,再继续说

/Users/auxten/scripts/thepath.py内容如下

 

如果在path_dic里指定类似这种

如果在path_dic里没有指定就会在search_path中按顺序查找flow文件夹,找到后就cd进去

1 对 “快速切换目录命令go”的想法;

  1. hOur company offers a wide variety of non prescription products. Look at our health portal in case you want to strengthen your health with a help generic supplements. Our site offers a wide variety of non prescription drugs. Take a look at our health website in case you want to to feel healthier with a help of general health products. Our company provides a wide variety of non prescription drugs. Visit our health site in case you want to to feel healthier with a help of health products. Our company provides a wide variety of pharmacy. Take a look at our health contributing portal in case you want to look better. Our company provides health products. Take a look at our health contributing website in case you want to strengthen your health. Our company provides generic pharmacy. Look at our health contributing portal in case you want to feel healthier.
    Our company offers a wide variety of weight loss products. Visit our health contributing website in case you want to feel better. Our company provides supreme quality general health products. Take a look at our health contributing site in case you want to feel healthier. Our company offers safe supplements. Look at our health contributing portal in case you want to look better. Our site offers a wide variety of non prescription drugs. Take a look at our health website in case you want to strengthen your health with a help of generic supplements. Our site offers a wide variety of non prescription drugs. Look at our health portal in case you want to to feel healthier with a help of general health products.

发表评论

电子邮件地址不会被公开。