-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
50 lines (37 loc) · 1 KB
/
.bashrc
File metadata and controls
50 lines (37 loc) · 1 KB
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
export EDITOR=atom
#---- Disable mailcheck
unset MAILCHECK
#---- Common commands
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
alias ll='ls -lv --group-directories-first --color'
alias h='history'
alias j='jobs -l'
alias myip='echo "Public IP: " && curl ifconfig.me'
alias grep='grep --color=auto'
alias bc='bc -l'
alias ports='netstat -tulanp'
alias wget='wget -C'
#--- Rails&Ruby related
alias r_migrate='bundle exec rake db:migrate'
alias r_c='bundle exec rails console'
alias guard='bundle exec guard'
#---- Git
alias gc='git commit -m'
alias gbl='git branch --list'
alias ga='git add'
alias gst='git status'
alias gls='git ls'
#---- utimer
alias stopwatch='utimer -s'
alias timer='utimer -t'
alias countdown='utimer -c'
# use Vim as man page reader
export MANPAGER="col -b | view -c 'set ft=man nomod nolist' -"
function knife_upload() {
knife cookbook upload --all
knife role from file roles/*.rb
knife data bag from file --all
}
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting