-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile_linux
82 lines (63 loc) · 1.66 KB
/
.bash_profile_linux
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env bash
function goto {
local p
local f
for p in `echo $GOPATH | tr ':' '\n'`; do
f=`find ${p}/src -type d -not -path '*/.*' | grep "${1}" | awk '{ print length, $0 }' | sort -n | cut -d" " -f2- | head -n 1`
if [ -n "$f" ]; then
cd $f
return
fi
done
workto "$@"
}
function workto {
local p
local f
f=`find ~/workspace -type d -not -path '*/.*' | grep "${1}" | awk '{ print length, $0 }' | sort -n | cut -d" " -f2- | head -n 1`
if [ -n "$f" ]; then
cd $f
return
fi
}
# Go Settings
export GOPATH=~/workspace/Go
export GOROOT=/usr/local/go
# aliases
alias ll="ls -laG"
alias set-proxy="source $HOME/scripts/set-proxy.sh"
alias unset-proxy="source $HOME/scripts/unset-proxy.sh"
alias goddamit="$HOME/scripts/deploy.sh"
# scripts
export PATH="$HOME/scripts:$PATH"
# AWS
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Path to the bash it configuration
export BASH_IT=$HOME/.bash_it
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='bobby'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
#
# cloud_controller_ng
#
#export DB_CONNECTION_STRING="mysql2://root:password@localhost:3306/cc_test"
#export DB="mysql"
#
# rbenv
#
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
eval "$(rbenv init -)"
# Load Bash It
source $BASH_IT/bash_it.sh
# direnv
eval "$(direnv hook bash)"
# go to workspace
cd $HOME/workspace
# nvm
export NVM_DIR="/home/hsiliev/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm