forked from teajaymars/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
51 lines (37 loc) · 1.15 KB
/
.bash_profile
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
45
46
47
48
49
50
# Interact with Bash in Vim mode
set -o vi
# Vim is my editor. I fucking love vim. No, really.
export EDITOR=vim
# I never remember how to open finder from the terminal
alias finder='open'
# I never remember how to access the clipboard
alias clipboard='pbcopy'
# Use a colour terminal
alias ls='ls -G'
alias ll='ls -l'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Use macvim from the command line
alias mvim="open -a MacVim.app"
# Use pyEnv very quickly
alias activate=". ~/pyenv/bin/activate"
# Use the Ubuntu default prompt
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
# FYI: Old (boring) OS X prompt
#export PS1"=\h:\W \u\$ "
# I go here a lot
alias avon='ssh avon@zen'
alias crontab='VIM_CRONTAB=true crontab'
# Common git alias list
alias gs='git status -s'
alias gd='git diff'
alias ga='git add'
alias gc='git commit'
alias gca='git commit -a'
alias gcm='git commit -m'
alias gcam='git commit -a -m'
alias gpom='git push origin master'
alias gl='git log'
# Node.js configuration
export NODE_PATH=/usr/lib/node_modules