1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

Use my own zsh plugin instead of writing alias

This commit is contained in:
juan 2022-04-11 20:37:31 +08:00
parent ca1772bba4
commit 6068de12e0

27
.zshrc
View File

@ -18,7 +18,9 @@ zinit light zdharma-continuum/fast-syntax-highlighting
zinit ice lucid wait zinit ice lucid wait
zinit light agkozak/zsh-z zinit light agkozak/zsh-z
zinit ice lucid wait zinit ice lucid wait
zinit light zpm-zsh/colorize zinit light juancldcmt/colorize
zinit ice lucid wait
zinit light juancldcmt/shortify.zsh
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh' zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
zinit light sindresorhus/pure zinit light sindresorhus/pure
@ -134,29 +136,6 @@ export MANPATH="${MANPATH}:${HOME}/.local/share/man"
export USE_CCACHE=1 export USE_CCACHE=1
export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH" export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH"
alias b='bat -n'
alias btctl='bluetoothctl'
alias cp='cp -iv'
alias df='df -h'
alias e='emerge'
alias free='free -h'
alias gcc='gcc -Wall -Wextra -g'
alias g='git'
alias info="info --vi-keys"
alias la='ls -la --human-readable'
alias ll='ls -l --human-readable'
alias l='ls --human-readable'
alias mv='mv -iv'
alias nya='doas'
alias p='python'
alias rm='trash'
alias se='doas emerge'
alias ssh='TERM="xterm-256color" ssh'
alias sv='doasedit.sh'
alias t='task'
alias v='nvim'
alias vw='nvim -c VimwikiIndex'
bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char bindkey -M menuselect 'l' vi-forward-char