Added ocp alias, don't exit, return if can't upgrade

This commit is contained in:
Austen Adler 2015-09-11 15:05:34 +00:00
parent b1378620fa
commit 4583c864e0
2 changed files with 4 additions and 1 deletions

View File

@ -36,3 +36,5 @@
keepBackup = false keepBackup = false
[credential] [credential]
helper = cache helper = cache
[color]
ui = auto

View File

@ -23,6 +23,7 @@ function asroot(){
xauth extract $TEMPFILE $DISPLAY xauth extract $TEMPFILE $DISPLAY
sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';" sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';"
} }
alias ocp="ocp -vs0 -dcurses"
alias dumpx="xauth extract /tmp/xauthstuff $DISPLAY" alias dumpx="xauth extract /tmp/xauthstuff $DISPLAY"
alias impx="xauth merge /tmp/xauthstuff;rm /tmp/xauthstuff" alias impx="xauth merge /tmp/xauthstuff;rm /tmp/xauthstuff"
alias sudo='sudo ' alias sudo='sudo '
@ -67,7 +68,7 @@ if test -f /etc/gentoo-release; then
# If this is a server computer # If this is a server computer
if [ "$(hostname|cut -b1)" = "S" ] ; then if [ "$(hostname|cut -b1)" = "S" ] ; then
echo "You're a server. Exiting" echo "You're a server. Exiting"
exit return
fi fi
cd /usr/portage >/dev/null cd /usr/portage >/dev/null
sudo zsh -c "git up&&echo Done pulling&&eix-update&&echo Done with eix" sudo zsh -c "git up&&echo Done pulling&&eix-update&&echo Done with eix"