zsh
和neovim
完整配置请查看本人的GitHub仓库
Zsh Key Bindings and Aliases Overview
This document provides a simplified and accurate breakdown of the key bindings and aliases in your Zsh configuration.
Essential Key Bindings
Key Combination |
Action |
Home |
Move to the beginning of the line |
End |
Move to the end of the line |
Insert |
Toggle overwrite mode |
Delete |
Delete the character under the cursor |
Right Arrow |
Move forward one character |
Left Arrow |
Move backward one character |
Page Up |
Search backward through command history |
Page Down |
Search forward through command history |
Ctrl + Right Arrow |
Move forward one word |
Ctrl + Left Arrow |
Move backward one word |
Simplified Editing and Navigation
Key Combination |
Action |
Shift + Tab |
Undo the last action (reverse undo) |
Ctrl + Backspace |
Delete the previous word |
Ctrl + U |
Delete the line before the cursor |
Ctrl + Delete |
Delete the next word |
History Search
Key Combination |
Action |
Up Arrow |
Search up through command history |
Down Arrow |
Search down through command history |
Terminfo Key Bindings
(These are optional key bindings using terminfo for portability.)
Key Combination |
Action |
${terminfo[khome]} |
Move to the beginning of the line (Home) |
${terminfo[kend]} |
Move to the end of the line (End) |
${terminfo[kich1]} |
Toggle overwrite mode (Insert) |
${terminfo[kdch1]} |
Delete the character under the cursor |
${terminfo[kcuu1]} |
Move up one line or navigate history (Up) |
${terminfo[kcud1]} |
Move down one line or navigate history (Down) |
${terminfo[kcub1]} |
Move backward one character (Left) |
${terminfo[kcuf1]} |
Move forward one character (Right) |
${terminfo[kpp]} |
Move to the beginning of the history (Page Up) |
${terminfo[knp]} |
Move to the end of the history (Page Down) |
Aliases
Alias |
Command |
c |
clear |
nf |
fastfetch |
pf |
fastfetch |
ff |
fastfetch |
ls |
eza -a --icons |
ll |
eza -al --icons |
lt |
eza -a --tree --level=1 --icons |
shutdown |
systemctl poweroff |
v |
$EDITOR |
vim |
$EDITOR |
wifi |
nmtui |
Qtile |
startx |
gs |
git status |
ga |
git add |
gc |
git commit -m |
gp |
git push |
gpl |
git pull |
gst |
git stash |
gsp |
git stash; git pull |
gcheck |
git checkout |
gcredential |
git config credential.helper store |
update-grub |
sudo grub-mkconfig -o /boot/grub/grub.cfg |
res1 |
xrandr --output DisplayPort-0 --mode 2560x1440 --rate 165 |
res2 |
xrandr --output DisplayPort-0 --mode 1920x1080 --rate 165 |
setkb |
setxkbmap de; echo "Keyboard set back to de." |
cp |
cp -i |
df |
df -h |
free |
free -m |
gitu |
git add . && git commit && git push |
history |
history 0 |
grep |
grep --color=auto |
fgrep |
fgrep --color=auto |
egrep |
egrep --color=auto |
diff |
diff --color=auto |
rm |
rm -i |
ip |
ip --color=auto |
la |
ls -A |