manjaro配置zsh

作者: callme周小伦 | 来源:发表于2019-06-17 21:58 被阅读3次
  1. 首先参照教程安装并配置zsh:终端环境之Zsh&oh-my-zsh
  2. 在应用中又发现其他插件:
    2.1 安装autojump
    sudo pacman -S autojump
    然后需要在~/.zshrc中配置一下,除了在 plugins中增加autojump之外,还需要添加一行:
[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && source ~/.autojump/etc/profile.d/autojump.sh

安装好之后,使用source ~/.zshrc,详细使用可以参照:autojump
这里注意:Directories must be visited first before they can be jumped to.

  • Jump To A Directory That Contains foo:
    j foo
  • Jump To A Child Directory:
    Sometimes it's convenient to jump to a child directory (sub-directory of current directory) rather than typing out the full name.
    jc bar
  • Open File Manager To Directories (instead of jumping):
    Instead of jumping to a directory, you can open a file explorer window (Mac Finder, Windows Explorer, GNOME Nautilus, etc.) to the directory instead.
    jo music
    2.2 extract:直接在plugins中增加extract
    用于解压文件,所有的压缩文件,都可以直接x filename,不用记忆参数
    如果你想要用tar命令,可以使用tar -加tab键,zsh会列出参数的含义。

相关文章

网友评论

    本文标题:manjaro配置zsh

    本文链接:https://www.haomeiwen.com/subject/ewftqctx.html