From eaa23ff9f75b7242773ccc3214fa3aea21730d8c Mon Sep 17 00:00:00 2001 From: Jer Noble Date: Tue, 20 Mar 2012 10:50:50 -0700 Subject: [PATCH 1/1] Initial Commit. --- .aliases | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ .bash_login | 30 +++++++++++++++++++++++++++++ .inputrc | 4 ++++ .webkit_login | 4 ++++ webkitenv | 11 +++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .aliases create mode 100644 .bash_login create mode 100644 .inputrc create mode 100644 .webkit_login create mode 100644 webkitenv diff --git a/.aliases b/.aliases new file mode 100644 index 0000000..f7bc77c --- /dev/null +++ b/.aliases @@ -0,0 +1,52 @@ +#!/usr/tcsh +# +# source +# +#stty erase  +alias m='pine' +alias beep='echo ' +alias h=history +alias hm='history | more' +alias hrm="history -r | more" +alias hh='history -r | head' +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 cls='clear' +alias d='date' +alias vi='vim ' +alias v='vi' +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 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 lu () { ls -ltuF $@ | head; } +function lum () { ls -ltuF $@ | more; } +function lut () { ls -ltuF $@ | tail; } +function lm () { ls -ltF $@ | more; } +function lt () { ls -ltF $@ | tail; } +function lk () { ls -sltF $@ | sort -nr | head; } +function lkm () { ls -sltF $@ | sort -nr | more; } +function lkt () { ls -sltF $@ | sort -nr | tail; } +function lf () { ls -lt $(find $1 -name $2 -print); } +function vif () { vi $(find $1 -name $2 -print); } +function viw () { vi $(which $1); } +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}'; } + + diff --git a/.bash_login b/.bash_login new file mode 100644 index 0000000..511d498 --- /dev/null +++ b/.bash_login @@ -0,0 +1,30 @@ +#!/bin/bash + +function short_pwd() +{ + local PWD=${PWD/#$HOME/\~}; + local tmp=${PWD%/*/*}; + [[ ${#tmp} -ne ${#PWD} && ${#tmp} -gt 0 ]] \ + && echo ...${PWD:${#tmp}} \ + || echo $PWD; +} +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 + +source ~/.aliases + +export EDITOR=/usr/bin/vim +export LSCOLORS=gxfxcxdxbxegedabagacad + +source ~/.webkit_login diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..f641de2 --- /dev/null +++ b/.inputrc @@ -0,0 +1,4 @@ +set completion-ignore-case On + +"\M-\e[D": backward-word +"\M-\e[C": forward-word diff --git a/.webkit_login b/.webkit_login new file mode 100644 index 0000000..7d1e52f --- /dev/null +++ b/.webkit_login @@ -0,0 +1,4 @@ +#!/bin/bash + +export WEBKIT_DIR=~/Projects/WebKit.git +source ${WEBKIT_DIR}/webkitenv \ No newline at end of file diff --git a/webkitenv b/webkitenv new file mode 100644 index 0000000..da43910 --- /dev/null +++ b/webkitenv @@ -0,0 +1,11 @@ +#!/bin/bash + +export EMAIL_ADDRESS=jer.noble@apple.com +export WEBKIT_DIR=~/Projects/WebKit.git +export PATH=$PATH:$WEBKIT_DIR/OpenSource/Tools:$WEBKIT_DIR/OpenSource/Tools/Scripts:$WEBKIT_DIR/Internal/Tools/Scripts +export PS1='$( if [ $? = 0 ]; then echo \[\e[32m\]:-\)\ ; else echo \[\e[31m\]:-\(\ ;fi;)\[\e[0m\]$(__git_ps1 "(%s) ")\u@\h:$(short_pwd)> ' + +alias opensource="cd $WEBKIT_DIR/OpenSource" +alias internal="cd $WEBKIT_DIR/Internal" + +source ~/bin/git-completion.bash -- 2.40.1