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
82317e1c29
commit
7192f17485
1 changed files with 4 additions and 3 deletions
|
|
@ -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=<<<---,>>>---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue