Add the reinstall_pattern alias
This commit is contained in:
parent
0d2b40b556
commit
718cdf8e2b
1 changed files with 7 additions and 0 deletions
7
.aliases
7
.aliases
|
@ -31,3 +31,10 @@ if hash dig 2>/dev/null; then
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if hash yay 2>/dev/null; then
|
||||||
|
reinstall_pattern() {
|
||||||
|
PATTERN="$1"
|
||||||
|
yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1)
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue