@ -110,6 +110,7 @@ alias update="sudo pacman -Syyu"
alias clean='sudo pacman -Rns $(pacman -Qtdq)'
alias cache="sudo paccache -r -k 2"
alias depend="$HOME/.scripts/alias.sh depend"
alias search="$HOME/.scripts/alias.sh pacman_search"
# Programming
alias jdoc="$HOME/.scripts/alias.sh java_doc"
@ -38,6 +38,12 @@ mkcd(){
mkdir -p "$1" && cd "$1" || exit
}
# Search for packages, by name only
pacman_search() {
pacman -Ss "$1" --color=always | \
awk -v m="$1" '{ if ($0 !~ /^\s/) { if ($1 ~ m) { print; }} else { print; }}'
pastebin() {
echo "$1" | curl -F 'f:1=<-' ix.io