manjaro配置zsh
2019-06-17 本文已影响3人
callme周小伦
- 首先参照教程安装并配置zsh:终端环境之Zsh&oh-my-zsh
- 在应用中又发现其他插件:
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.2extract
:直接在plugins
中增加extract
用于解压文件,所有的压缩文件,都可以直接x filename,不用记忆参数
如果你想要用tar命令,可以使用tar -加tab键,zsh会列出参数的含义。