Skip to content

Commit

Permalink
broke out distro-specific aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
graysky2 committed Feb 23, 2013
1 parent 1d63cb4 commit 2413b42
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 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.