Posted By

willcodeforfood on 12/16/07


Tagged

bashrc


Versions (?)

Arch Pacman aliases


 / Published in: Bash
 

  1. alias p="pacman"
  2. alias pQ="pacman -Q"
  3. alias pqs="pacman -Qs"
  4. alias pqi="pacman -Qi"
  5. alias pS="sudo pacman -S"
  6. alias psyu="sudo pacman -Syu"
  7. alias psi="pacman -Si"
  8. alias pR="sudo pacman -R"
  9. alias prc="sudo pacman -Rc"
  10. alias prs="sudo pacman -Rs"
  11. alias prsc="sudo pacman -Rsc"
  12. alias pA="sudo pacman -A"
  13. alias pU="sudo pacman -U"
  14. alias pO="sudo pacman-optimize"
  15. #Colorful pacman -Ss output
  16. pss () {
  17. echo -e "$(pacman -Ss $@ | sed
  18. -e 's#current/.*#\033[1;31m&\033[0;37m#g'
  19. -e 's#extra/.*#\033[0;32m&\033[0;37m#g'
  20. -e 's#community/.*#\033[1;35m&\033[0;37m#g'
  21. -e 's#^.*/.* [0-9].*#\033[0;36m&\033[0;37m#g' )"
  22. }

Report this snippet  

You need to login to post a comment.