forked from lukegiuliani/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.extra
44 lines (33 loc) · 1.67 KB
/
.extra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# HISTFILESIZE=10000
#export EDITOR="$HOME/bin/mate -w"
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
alias slt='open -a "Sublime Text 2" --args --new-window'
alias ffmpeg="/Applications/ffmpegX.app/Contents/Resources/ffmpeg"
function te ()
{
tail -f /var/log/apache2/error_log \
| perl -ne \
'($timeStamp, $error, $hostName, $message) =
/^\[([^\]]+)\] \[([^\]]+)\] (?:\[client ([^\]]+)\])?\s*(.*)$/i; # Parse log
($day, $month, $date, $time, $year) =
$timeStamp =~ m/(\S*) (\S*) (\S*) (\S*) (\S*)$/; # Extract the timestamp
$message =~ s/, referer: (.*)$/\./; # Strip the referer references
$message =~ s/\\n/\n/g; # Replace literal new lines to expand object dumps
print $time . " " . $date . " " . $month . " | " . $message ."\n";'
}
function go { subl .; open http://localhost/~`whoami`/`basename \`pwd\``/htdocs; }
# git helpers
# aliasey kinda things
function gstart { git clone --recursive git@bitbucket.org:Squareweave/$@.git ~/Sites/$@; }
alias gsubup='git submodule --quiet update --init --recursive'
alias gfixsub='git submodule foreach --recursive git checkout master && git submodule foreach --recursive git pull'
# export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Users/luke/bin:/usr/local/texlive/2010/bin/universal-darwin/"
export PATH="~/bin:$PATH"
##
# MacPorts Installer addition on 2012-03-21_at_08:54:06: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi