Skip to content

Commit

Permalink
Upload new file: zsh 快捷键让 shell 命令效率飞起.md via simpread
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Feb 16, 2023
1 parent eb0c066 commit caad740
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions excerpt/zsh 快捷键让 shell 命令效率飞起.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
> 本文由 [简悦 SimpRead](http:https://ksria.com/simpread/) 转码, 原文地址 [juejin.cn](https://juejin.cn/post/6844903849572974605)
* 加粗常用

**⌃ + u:清空当前行**

**⌃ + a:移动到行首**

**⌃ + e:移动到行尾**

⌃ + f:向前移动

⌃ + b:向后移动

**⌃ + p:上一条命令**

**⌃ + n:下一条命令**

⌃ + r:搜索历史命令

⌃ + y:召回最近用命令删除的文字

⌃ + h:删除光标之前的字符

⌃ + d:删除光标所指的字符

**⌃ + w:删除光标之前的单词**

**⌃ + k:删除从光标到行尾的内容**

⌃ + t:交换光标和之前的字符

——————————————————————————————————

⌘ + Click:可以打开文件,文件夹和链接

⌘ + n:新建窗口

⌘ + t:新建标签页

⌘ + w:关闭当前页

⌘ + 数字 & ⌘ + 方向键:切换标签页

⌥⌘ + 数字:切换窗口

**⌘ + enter:切换全屏,再按退出全屏**

**⌘ + d:左右分屏**

⇧⌘ + d:上下分屏

⌘ + ;:自动补全历史记录

⇧⌘ + h:自动补全剪贴板历史

⌥⌘ + e:查找所有来定位某个标签页

**⌘ + r & ⌃ + l:清屏**

⌘ + /:显示光标位置

⌥⌘ + b:历史回放

⌘ + f:查找,然后用 tab 和 ⇧ + tab 可以向右和向左补全,补全之后的内容会被自动复制, 还可以用 ⌥ + enter 将查找结果输入终端

选中即复制,鼠标中键粘贴

0 comments on commit caad740

Please sign in to comment.