mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 11:31:30 +01:00
zsh: add pacbins and rexplain commands
This commit is contained in:
parent
d58d4232e8
commit
8236f71189
|
@ -301,6 +301,20 @@ git-fixup() {
|
||||||
git -c sequence.editor=true rebase --interactive --autosquash $1^
|
git -c sequence.editor=true rebase --interactive --autosquash $1^
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if command -v pacman &>/dev/null ; then
|
||||||
|
compdef _pacman_completions_installed_packages pacbins
|
||||||
|
pacbins() {
|
||||||
|
pacman -Ql $1 | sed -n -e 's/.*\/bin\///p' | tail -n +2
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v rustc &>/dev/null
|
||||||
|
then
|
||||||
|
rexplain() {
|
||||||
|
rustc --explain $@ | bat --language=rust -
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# dotfiles user functions
|
# dotfiles user functions
|
||||||
if [[ -f $HOME/.dotfiles_functions ]]; then
|
if [[ -f $HOME/.dotfiles_functions ]]; then
|
||||||
source "$HOME/.dotfiles_functions"
|
source "$HOME/.dotfiles_functions"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user