From 7192f17485efb076a8d462b77fad568011732bf0 Mon Sep 17 00:00:00 2001 From: rydesun Date: Mon, 3 Feb 2020 01:08:24 +0800 Subject: [PATCH] Update zsh config --- .config/zsh/.zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 3562dd7..57fa7d4 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -46,15 +46,16 @@ GIT_PS1_DESCRIBE_STYLE="default" # >>>----------------------------------- # >>>----------------------------------- -# extension <<<------------------------- +# 扩展 <<<------------------------- source /usr/share/doc/pkgfile/command-not-found.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # >>>----------------------------------- -# alias <<<----------------------------- +# 命令别名 <<<----------------------------- alias sudo='sudo ' alias e='nvim' && compdef e=nvim +alias ec='nvim -S' alias g='git' && compdef g=git alias p='python' && compdef p=python alias mitm='proxychains -f ~/Archway/proxychains-mitm.conf' @@ -82,7 +83,7 @@ alias pms='pacman -Ss' pmi() { pacman -Qi $1 2>/dev/null || pacman -Sii $1 } pmo() { pacman -Qoq $1 2>/dev/null || pkgfile -i $1 } pml() { (pacman -Qlq $1 2>/dev/null || pkgfile -lq $1) | sed '/\/$/d' } -pmb() { pacman -Ql $1 | awk -F/ '/\/usr\/bin\/.+[^/]$/{print $NF}' } +pmb() { (pacman -Qlq $1 2>/dev/null || pkgfile -lq $1) | awk -F/ '/\/usr\/bin\/.+[^/]$/{print $NF}' } # >>>----------------------------------- # vim: foldmethod=marker:foldmarker=<<<---,>>>---