.profile: All is Portage

This commit is contained in:
Salt 2018-08-13 17:32:23 -05:00
parent 239f7c5976
commit 192bb8e11b

View File

@ -26,7 +26,7 @@
# care of it # care of it
# If emerge exists, add emerge aliases # 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-depclean='sudo emerge -a --depclean'
alias e-inst='sudo emerge -a --jobs --tree --quiet-build y' 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' 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?' alias emerge='"emerge" was not found. Does the system use portage at all?'
fi 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 # Alias for the dotfile setup
if [ -d "$HOME/.dotfiles" ]; then if [ -d "$HOME/.dotfiles" ]; then
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'