diff --git a/.profile b/.profile index b5124c63..8e6fdd50 100755 --- a/.profile +++ b/.profile @@ -26,7 +26,7 @@ # care of it # If emerge exists, add emerge aliases -if [ "`which emerge > /dev/null 2>&1`" ]; then +if [ `which emerge` ]; then alias e-depclean='sudo emerge -a --depclean' alias e-inst='sudo emerge -a --jobs --tree --quiet-build y' alias e-upgrade='sudo emerge -DNuva --jobs --tree --quiet-build y --with-bdeps=y @world' @@ -38,34 +38,6 @@ else alias emerge='"emerge" was not found. Does the system use portage at all?' fi -# Add an alias for lsblk, since I tend to use that -if [ "`which lsblk > /dev/null 2>&1`" ]; then - alias lsblk='lsblk -p' - alias lsblkf='lsblk -pf' -fi - -# If pacman exists, check for helpers and add aliases -if [ "`which pacman > /dev/null 2>&1`" ]; then - export pac_helper="pacaur" - helpers="pacaur yaourt pacman" - for helper in $helpers; do - if [ "$(pacman -Qq "$helper" > /dev/null)" ]; then - export pac_helper="$helper" - break - fi - done - - alias pac="\$pac_helper" - alias pacq="\$pac_helper -Qs" - alias pacqi="\$pac_helper -Qi" - alias pacs="\$pac_helper -S" - alias pacss="\$pac_helper -Ss" - alias pacsu="\$pac_helper -Syu" - alias pacsyu="\$pac_helper -Syyu" - alias pacsr="\$pac_helper -Rsnu" - unset helpers -fi - # Alias for the dotfile setup if [ -d "$HOME/.dotfiles" ]; then alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'