mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
Update zsh config
This commit is contained in:
parent
c42de3300f
commit
a49be771f8
1 changed files with 9 additions and 1 deletions
10
.zshrc
10
.zshrc
|
|
@ -304,7 +304,15 @@ alias g='git'
|
|||
alias x='xdg-open'
|
||||
alias e='nvim'
|
||||
alias f='ranger'
|
||||
d() { diff -u "$1" "$2" | delta }
|
||||
d() {
|
||||
if [ "$#" -eq 1 ]; then
|
||||
# 查看单个patch
|
||||
cat $1 | delta
|
||||
else
|
||||
# 比较两个文件
|
||||
diff -u "$1" "$2" | delta
|
||||
fi
|
||||
}
|
||||
|
||||
# 需要搭配我的neovim配置
|
||||
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue