Skip to content
Browse files

broke out distro-specific aliases

  • Loading branch information...
1 parent 1d63cb4 commit 2413b429f126d6bad420c1e2ce2793e79681f044 @graysky2 committed Feb 23, 2013
Showing with 19 additions and 0 deletions.
  1. +19 −0 shell/.distro-specific_aliases
View
19 shell/.distro-specific_aliases
@@ -0,0 +1,19 @@
+# distro specific
+if [[ $(grep -c Fedora /etc/issue) -eq 1 ]]; then
+ alias orphans='sudo package-cleanup --orphans'
+ alias pp='sudo yum clean all && sudo yum upgrade && sudo yum clean all'
+ alias bb='sudo bleachbit --delete system.cache system.localizations system.trash'
+elif [[ $(grep -c Ubuntu /etc/issue) -eq 1 ]]; then
+ alias orphans='[[ -n $(dpkg -l "*" | egrep "^rc" | cut -d\ -f3) ]] && \
+ sudo dpkg --purge $(COLUMNS=300 dpkg -l "*" | egrep "^rc" | cut -d\ -f3) ;\
+ sudo apt-get autoremove ;\
+ sudo apt-get remove --purge $(deborphan) ;\
+ sudo apt-get autoclean'
+ alias pp='sudo aptitude update && sudo aptitude upgrade && sudo aptitude clean'
+ alias bb='sudo bleachbit --clean system.cache system.localizations system.trash'
+fi
+
+if [[ -f /.debian64 ]]; then
+ alias pp='sudo aptitude update && sudo aptitude upgrade && sudo aptitude clean'
+ alias bb='sudo bleachbit --clean system.cache system.localizations system.trash'
+fi

0 comments on commit 2413b42

Please sign in to comment.
Something went wrong with that request. Please try again.