-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc_custom
33 lines (25 loc) · 1.05 KB
/
.bashrc_custom
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
alias hosts='sudo vi /etc/hosts'
alias shorts='cat ~/.ssh/config | grep Host | grep -vi HostName'
alias sconf='less ~/.ssh/config'
alias beh='less ~/.bash_eternal_history'
alias slast='tail -r ~/.bash_eternal_history | grep scp | head -n1 | cut -f 4'
alias tagsmp='cd ~/smp_blog; git ctags; cd -'
alias dclb='docker-compose logs -f blog'
alias dclp='docker-compose logs -f proxy'
alias dclr='docker-compose logs -f react-frontend'
alias dcu='docker-compose up -d --build --force-recreate'
grepfind () { find . -type f -name "$2" -print0 | xargs -0 grep "$1" ; }
fphp() { grepfind $1 \*.php ; }
fjs() { grepfind $1 \*.js ; }
fcss() { grepfind $1 \*.css ; }
fsh() { grepfind $1 \*.sh ; }
#export SMPENV="me"
export RUBYOPT="rubygems"
#rvm setup
export PATH=$HOME/.rvm/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
#source $(rvm 1.9.3 do rvm env --path) #set the ruby to use - not playing nicely with tmux.
#git setup
export PATH=/usr/local/git/bin:$PATH
#nim
export PATH=/opt/nim/bin:$PATH