Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |