Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated distro-specific stuff

  • Loading branch information...
commit d2fa70c530ad455f12d92727abda9e931abec7d6 1 parent 2413b42
@graysky2 authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 shell/.distro-specific_aliases
View
9 shell/.distro-specific_aliases
@@ -3,7 +3,12 @@ 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
+fi
+
+[[ $(grep -c Ubuntu /etc/issue) -eq 1 ]] && ubuntu_clone="1"
+[[ $(grep -c Mint /etc/issue) -eq 1 ]] && ubuntu_clone="1"
+
+if [[ $ubuntu_clone -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 ;\
@@ -13,7 +18,7 @@ elif [[ $(grep -c Ubuntu /etc/issue) -eq 1 ]]; then
alias bb='sudo bleachbit --clean system.cache system.localizations system.trash'
fi
-if [[ -f /.debian64 ]]; then
+if [[ $(grep -c Debian /etc/issue) -eq 1 ]]; then
alias pp='sudo aptitude update && sudo aptitude upgrade && sudo aptitude clean'
alias bb='sudo bleachbit --clean system.cache system.localizations system.trash'
fi
Please sign in to comment.
Something went wrong with that request. Please try again.