From 2413b429f126d6bad420c1e2ce2793e79681f044 Mon Sep 17 00:00:00 2001 From: graysky Date: Sat, 23 Feb 2013 06:54:49 -0500 Subject: [PATCH] broke out distro-specific aliases --- shell/.distro-specific_aliases | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 shell/.distro-specific_aliases diff --git a/shell/.distro-specific_aliases b/shell/.distro-specific_aliases new file mode 100644 index 0000000..35e3bbc --- /dev/null +++ b/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