跳转位置-更改目录(CD)PowerShell命令,可让您读懂

2023-05-16

There's a lovely little utility called autojump for *nix consoles that makes the 'cd' command very smart. More that just auto-completion, it's a kind of "auto guessing." Hence, autojump. There is some beginning Windows support, but instead I turned to Tim Kellogg's open source PowerShell implementation "Jump-Location."

* nix控制台有一个可爱的小实用程序,称为autojump ,使'cd'命令非常智能。 不仅仅是自动完成,更是一种“自动猜测”。 因此,自动跳转。 Windows有一些开始的支持,但是我转而使用了Tim Kellogg的开源PowerShell实现“ Jump-Location” 。

What a joy.

太高兴了

First, I was like "jump-location?" I'm not going to type that. But then, of course, duh. Aliases.

首先,我就像“跳转位置?” 我不会打那个。 但是,当然,du。 别名。

Jump-Location is aliased to just j, which means I can now do awesome stuff like this:

Jump-Location仅别名为j ,这意味着我现在可以做这样的出色工作:

c:\> j sc
c:\users\scott> j g
c:\users\AppData\Local\GitHub> j des
c:\users\scott\Desktop>

But there's more. It's actually watching how long you are in a directory and keeping stats. You can see the weighted stats with "jumpstat" and the "database" is just a text file in ~\jump-location.txt.

但是还有更多。 它实际上是在监视您在目录中的时间并保留统计信息。 您可以使用“ jumpstat”看到加权统计信息,而“数据库”只是〜\ jump-location.txt中的文本文件。

If "j d" isn't enough to get me into C:\GitHub\DisProject then I can do "j g d" and I'm there. It's amazing.

如果“ jd”不足以使我进入C:\ GitHub \ DisProject,那么我可以执行“ jgd”,并且我在那。 太奇妙了。

Installation is easy, and I hope it gets on PsGet soon for even easier installation. Just unzip, unblock, ensure that your PowerShell execution policy allows scripts, and run ./install.ps1.

安装很容易,我希望它能尽快在PsGet上使用,以使安装更加容易。 只需解压缩,取消阻止,确保您的PowerShell执行策略允许脚本并运行./install.ps1。

NOTE: Don't run install from your desktop, or a temp folder. Put the Jump-Location folder somewhere where it will live, and it's going to add a line like this to your user profile ("C:\Users\YOU\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1")  like this, so you'll want to install from a final path:

注意:请勿从桌面或临时文件夹运行安装。 将Jump-Location文件夹放在将要保存的位置,然后将这样的行添加到用户配置文件中(“ C:\ Users \ YOU \ Documents \ WindowsPowerShell \ Microsoft.PowerShell_profile.ps1”),这样,您想要从最终路径安装:

Import-Module 'C:\Users\Scott\Dropbox\utils\Jump-Location-0.5.1\Jump.Location.psd1'

I'm excited about this great little utility. Head over to https://github.com/tkellogg/Jump-Location and STAR it in GitHub, and give it a go! Tim, the author, is on Twitter at @kellogh. Other contributors include Sergey Vorobyev.

我为这个伟大的小工具感到兴奋。 前往https://github.com/tkellogg/Jump-Location并在GitHub中对其加注星标,然后尝试一下! 作者蒂姆(Tim)在Twitter上@kellogh 。 其他贡献者包括Sergey Vorobyev 。

翻译自: https://www.hanselman.com/blog/jumplocation-a-change-directory-cd-powershell-command-that-reads-your-mind

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

跳转位置-更改目录(CD)PowerShell命令,可让您读懂 的相关文章

随机推荐

  • Python中import的使用

    python中的import语句是用来导入模块的 xff0c 在python模块库中有着大量的模块可供使用 xff0c 要想使用这些文件需要用import语句把指定模块导入到当前程序中 import语句的作用 import语句作用就是用来导
  • android studio 安卓集成高德地图获取app定位信息

    在网上搜索过大量集成高德地图的方案 xff0c 和测试代码 xff0c 要么就是博主抄来没有测试过的代码 xff0c 要么就是步骤不连续的 xff0c 甚至包裹官网给出的解决方案都是欠缺相关步骤的 xff08 官网截图都不知道多少年前的了
  • Mac操作系统下怎么显示隐藏文件

    方法一 xff1a 第一步 xff1a 打开 终端 应用程序 第二步 xff1a 输入如下命令 xff1a defaults write com apple finder AppleShowAllFiles boolean true kil
  • Linux : brctl not found

    Getting this error message while trying to bring up your newly configured bridge interface on RHEL CentOS Linux You are
  • 查看supervisor启动日志

    2019独角兽企业重金招聘Python工程师标准 gt gt gt tail f var log messages 转载于 https my oschina net u 3371661 blog 3045059
  • 嵌入式就业前景怎么样?嵌入式工作该如何分类?

    随着科技进步 xff0c 嵌入式的出现 xff0c 以及人们对生活质量 xff0c 产品的智能化 xff0c 成本的要求等 xff0c 以及国家对与物联网 电子 科技的扶持 xff0c 大量的电子产品都促使嵌入式的快速发展 嵌入式涵盖了微电
  • 【vivado】ILA调试报错 The debug hub core was not detected 以及 Data read from hw_ila [hw_ila_1] is corrupted...

    报错一 xff1a WARNING Labtools 27 3361 The debug hub core was not detected Resolution 1 Make sure the clock connected to the
  • 面试题:你在项目中遇到哪些问题?

    你在项目中遇到哪些问题 xff1f 因为目前项目采用的是分布式 xff0c 分布式环境下一般采用集群方案 xff0c 所以这就会带来分布式的一些问题 xff0c 比如 xff1a 1 分布式锁 2 分布式session 3 分布式全局id
  • 检查 ubuntu 版本_如何检查Ubuntu版本–快速简便的方法

    检查 ubuntu 版本 In this tutorial we will go over the easiest methods to check Ubuntu version from the terminal You can use
  • hashheap python 实现

    class Node object 34 34 34 the type of class stored in the hashmap in case there are many same heights in the heap maint
  • Cocos Creator 实现大厅+子游戏模式

    大厅 43 子游戏的模式 xff0c 在棋牌类型 教育类型游戏中比较常见 xff0c 通常是安装包里面只有大厅的资源和代码 xff0c 然后子游戏根据需求以热更新的方式下载来提供给玩家 之前一直负责的是cocos2dx lua的开发 xff
  • matlab练习程序(Kruskal最小生成树)

    老物了 xff0c 网上的例子多的数不过来 不过我还是有必要练习一下的 之所以看这个算法是因为最近在看颜色聚合向量时 xff0c 有的论文用到了最小生成树 xff0c 因此我就拿来熟悉一下 Kruskal算法类似于连通分支算法 xff0c
  • Ubuntu18.04创建新的系统用户

    目标 xff1a 1 为测试学习Docker xff0c 在虚拟机OS为18 04里 xff0c 创建一个系统账号 xff0c 账号名称 xff1a docker 2 在 home下有新建username的文件夹 一 建立账号 1 以roo
  • gooreplacer 很好用

    国内上 StackOverflow hackernews 之类的站点会慢 因为页面里有链接指向 google 谷歌 会被墙 于是拖累了整个页面的显示 gooreplacer 可以把这些被墙连接替换掉 安装方法的话 xff0c 在浏览器的安装
  • vscod 技巧,自动循环书写li

    ul gt li 10 这是第 个li lt ul gt lt li gt 这是第1个li lt li gt lt li gt 这是第2个li lt li gt lt li gt 这是第3个li lt li gt lt li gt 这是第4
  • Ai challenger 2017 image caption小结

    参加了今年的 ai challenger 的 image caption比赛 xff0c 最终很幸运的获得了第二名 这里小结一下 Pytorch 越来越火了 前五名有三个 pytorch xff0c 两个 tensorflow 关于哪个 l
  • 哥很无奈 今天看到我的host文件是这个样子

    127 0 0 1 www gtxp2 com 这家无良公司在所谓的网维工具内加入了屏蔽我站的信息 xff0c 我们也是不得已做出反击 xff0c 望见者谅解 127 0 0 1 gtxp2 com 封死此无良网站 xff0c B4此站的相
  • [转载] 以下划线开头的变量

    转自 xff1a https blog csdn net Grevi article details 60581354 今天在公司看 GNU ISO C 43 43 Library库中的stl库时 xff0c 偶然间感觉到一个问题 xff0
  • 如果编程语言是武侠

    如果是武功 C紫霞神功要大成需要很长时间 xff0c 威力还行Cpp九阳神功威力巨大Lisp小无相功你可以把它当做任何武功Shell太极拳四两拨千斤PHP打狗棒法不上台面 xff0c 但威力惊人Java八荒六合唯我独尊神功 无敌C 北冥神功
  • 跳转位置-更改目录(CD)PowerShell命令,可让您读懂

    There 39 s a lovely little utility called autojump for nix consoles that makes the 39 cd 39 command very smart More that