forked from TClan/system-config-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
55 lines (50 loc) · 1.35 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
51
52
53
54
55
function bash_settings
{
export PS1='\w$ '
export PS1='\w$(__git_ps1 "(%s)")$ '
export EDITOR="vim"
export HISTSIZE=1000
export HISTFILESIZE=1000
export HISTCONTROL=ignoredups
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUPSTREAM=true
}
function system_command_aliases
{
alias ls='ls -G'
alias mkdir='mkdir -p'
alias df='df -h'
alias du='du -h -c'
alias ln='ln -s'
alias rf='rm -rf'
alias sniff_lo='sudo tcpdump -i lo0 -A'
}
function package_aliases
{
alias mysql_start="mysqld --skip-grant &disown"
alias mysqlc="mysql -uroot -pruebe"
alias mongo_start="sudo rm /data/db/mongod.lock && nohup mongod >/dev/null 2>&1"
alias pg_start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
alias redis_start="nohup redis-server /usr/local/etc/redis.conf >/dev/null 2>&1"
alias be="bundle exec"
alias g="git"
alias gdi="git di"
alias git_cleanup="git branch | grep -v 'master\|develop' | xargs git branch -D"
alias git=hub
alias mdiff="git di | mate"
alias dim="sips -g pixelWidth -g pixelHeight"
alias e="subl -n ."
}
function gca
{
git add -A .
git commit -m "$@"
}
source .git-prompt.sh
[ -z "$PS1" ] && return
bash_settings
system_command_aliases
package_aliases
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"