Update for go, update pk

git-svn-id: http://photonzero.com/dotfiles/trunk@102 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2011-08-26 04:14:53 +00:00
parent 4ea00430a3
commit a9e9e6d6ba
6 changed files with 31 additions and 9 deletions

View file

@ -61,6 +61,8 @@ alias gcal='gcalcli'
#Sysdadmin #Sysdadmin
alias aptsearch="aptitude search" alias aptsearch="aptitude search"
alias pki="pk i"
alias pks="pk s"
alias openports="lsof -i 4 -n" alias openports="lsof -i 4 -n"
alias saupdate="sa-learn --mbox --spam ~/mail/spam" alias saupdate="sa-learn --mbox --spam ~/mail/spam"
alias pshosers="ps axeo pcpu,pid,user,command | sort -k 1 -r | head -11 " alias pshosers="ps axeo pcpu,pid,user,command | sort -k 1 -r | head -11 "

View file

@ -39,9 +39,9 @@ fi
PERL5LIB=$HOME/local/lib64/perl5/site_perl/5.8.8/ PERL5LIB=$HOME/local/lib64/perl5/site_perl/5.8.8/
#Go Language stuff #Go Language stuff
export GOROOT=$HOME/local/go #export GOROOT=$HOME/local/go
export GOARCH=amd64 #export GOARCH=amd64
export GOOS=linux #export GOOS=linux
case `uname` in case `uname` in
Darwin) Darwin)
export GOOS=darwin export GOOS=darwin

View file

@ -1,5 +1,8 @@
set alias_file=~/.mutt_alias set alias_file=~/.mutt_alias
set folder=~/Maildir/ #set folder=~/Maildir/
#set spoolfile="~/Maildir"
set folder=imaps://imap.barakmich.com/
set spoolfile=imaps://imap.barakmich.com/INBOX
set move=no set move=no
set mark_old=no set mark_old=no
set pager_stop=yes set pager_stop=yes
@ -9,7 +12,7 @@ set mbox_type=Maildir
set mbox="~/Maildir" set mbox="~/Maildir"
set record="+.Sent" set record="+.Sent"
set postponed="+.Drafts" set postponed="+.Drafts"
set spoolfile="~/Maildir" set imap_user="barak"
mailboxes `echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "` mailboxes `echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "`
#set sort=date-received #set sort=date-received
#set spoolfile=+michener.com #set spoolfile=+michener.com

View file

@ -6,7 +6,7 @@
# #
# remove /usr/games and /usr/X11R6/bin if you want # remove /usr/games and /usr/X11R6/bin if you want
PATH=$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/X11R6/bin:/$HOME/.gem/ruby/1.9/bin; export PATH PATH=$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/X11R6/bin:/$HOME/.gem/ruby/1.9/bin:$PATH; export PATH
case `uname` in case `uname` in
SunOS) SunOS)
UCB_PATH=/usr/sww/lang/acl:/usr/sww/lang/jdk-1.5.0/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sww/opt/java/bin:/usr/sww/bin:/share/b/grading/bin:/share/b/grading/sbin:/share/b/runas/sun4u:/share/b/bin:/home/aa/projects/scheme/bin:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin; export UCB_PATH UCB_PATH=/usr/sww/lang/acl:/usr/sww/lang/jdk-1.5.0/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sww/opt/java/bin:/usr/sww/bin:/share/b/grading/bin:/share/b/grading/sbin:/share/b/runas/sun4u:/share/b/bin:/home/aa/projects/scheme/bin:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin; export UCB_PATH

3
.zshrc
View file

@ -56,7 +56,8 @@ esac
PROMPT='$PR_STITLE$PR_LIGHT_BLUE($PR_LIGHT_YELLOW%D{%H:%M}|%!$PR_BLUE%)[%(!.$PR_RED.$PR_GREEN)%n@%m$PR_LIGHT_CYAN %~$PR_BLUE]$PR_NO_COLOUR%(!.#.$) ' PROMPT='$PR_STITLE$PR_LIGHT_BLUE($PR_LIGHT_YELLOW%D{%H:%M}|%!$PR_BLUE%)[%(!.$PR_RED.$PR_GREEN)%n@%m$PR_LIGHT_CYAN %~$PR_BLUE]$PR_NO_COLOUR%(!.#.$) '
#source .zshprompt #source .zshprompt
source ~/.zsh_profile #source ~/.zsh_profile
source ~/.zprofile
source ~/.bash_aliases source ~/.bash_aliases
source ~/.zshenv source ~/.zshenv
if [ -n "`which fortune`" ]; then if [ -n "`which fortune`" ]; then

20
bin/pk
View file

@ -2,7 +2,7 @@
search () { search () {
shift shift
if which pacman >/dev/null; then if which pacman >/dev/null; then
pacman -Ss $1 pacman -Ss $1 || aurget -Ss $1
elif which port >/dev/null; then elif which port >/dev/null; then
port search $1 port search $1
elif which portmaster >/dev/null; then elif which portmaster >/dev/null; then
@ -15,10 +15,23 @@ search () {
fi fi
} }
update () {
shift
if which pacman >/dev/null; then
pacman -Sy
elif which port >/dev/null; then
port selfupdate
elif which portmaster >/dev/null; then
portsnap fetch && portsnap upgrade
elif which apt-get >/dev/null; then
apt-get update
fi
}
install () { install () {
shift shift
if which pacman >/dev/null; then if which pacman >/dev/null; then
pacman -S $* pacman -S $* || aurget -Ss --asroot $*
elif which port >/dev/null; then elif which port >/dev/null; then
port install $* port install $*
elif which portmaster >/dev/null; then elif which portmaster >/dev/null; then
@ -35,5 +48,8 @@ in
"s" | "search") "s" | "search")
search $*;; search $*;;
"u" | "update")
update $*;;
esac esac