-#!/usr/tcsh
-#
-# source
-#
-#stty erase \7f
+#!/bin/bash
+
+# The following aliases vary depending on the host OS:
+if [[ "x$(uname -s)" == "xLinux" ]]; then
+ alias ls='ls -F --color=auto'
+elif [[ "x$(uname -s)" == "xDarwin" ]]; then
+ alias ls='ls -FG'
+fi
+
alias m='pine'
alias beep='echo \a'
alias h=history
alias ht='history 10'
alias p='ps -au'
alias tf='tail -25f'
-alias ls='ls -FG'
alias l='ls -lF'
alias la='ls -laF'
alias clr='clear'
alias vt='vi -t'
alias ta='vi -t'
alias wh='whoami'
-alias ff='perl ~/tools/ff.c'
alias new='frm -s new'
alias du='du -k'
-alias df='df -bk'
+alias df='df -k'
alias shizzle="perl -pe 's/\b(\w*[^aoeuiy])[aoeuiy]+[bcdfghjklmnpqrstvwxz]*\w\b/\1izzle/g'"
-alias gvim='open ~/Applications/Vim.app/'
-alias qtmlenv='source ~/Projects/qtmlenv'
function lh () { last $@ | head; }
function ll () { ls -ltF $@ | head; }
function toss () { mv -f $@ ~/.trashcan; }
function xcopy () { tar cvf - -C $1 $1/* | tar xvf - -C $2; }
function checkdns () { ping $( grep nameserver /etc/resolv.conf | awk '{print $2}' | head -1); }
-function pidof () { ps -e -o pid,comm | grep "$1" | awk '{print $1}'; }
+if [[ $(which -s pidof) -eq 0 ]]; then
+ function pidof () { ps -e -o pid,comm | grep "$1" | awk '{print $1}'; }
+fi
+
+function ssh-forget() {
+ sed -i "" "/^$1,/d" ~/.ssh/known_hosts
+}
+
+function ssh-learn() {
+ sed -i "" "/^$1,/d" ~/.ssh/known_hosts
+ ssh-keyscan -t rsa $1 >> ~/.ssh/known_hosts
+}
}
export PS1='$( if [ $? = 0 ]; then echo \[\e[32m\]:-\)\ ; else echo \[\e[31m\]:-\(\ ;fi;)\[\e[0m\]\u@\h:$(short_pwd)> '
-ssh-forget() {
-sed -i .bak "/^$1,/d" ~/.ssh/known_hosts
-}
-
-ssh-learn() {
-sed -i .bak "/^$1,/d" ~/.ssh/known_hosts
-ssh-keyscan -t rsa $1 >> ~/.ssh/known_hosts
-}
-
export PATH=~/bin:$PATH
export MANPATH=~/man:$MANPATH