Skip to content

Commit

Permalink
[vm] Configure custom_rc for new VM
Browse files Browse the repository at this point in the history
- Change the different paths
- Keep .z between recreations
- Change detection of VM hostname
- Alias for gocheck
  • Loading branch information
Viq111 committed Jun 7, 2016
1 parent 4194857 commit 1a67d89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
19 changes: 13 additions & 6 deletions zsh/custom_rc/dogbox
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
export VIRTUAL_ENV_DISABLE_PROMPT=1
source $HOME/dogweb/python/bin/activate && cd $HOME/workspace/dogweb
export GOPATH=$HOME/workspace/go
source $HOME/python/bin/activate && cd $HOME/dogweb
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export NODEPATH=$HOME/workspace/dogweb/node_modules
export PATH=$PATH:$NODEPATH/.bin/:$GOBIN
export NODEPATH=$HOME/dogweb/node_modules
export PATH=~/bin:$GOBIN:$PATH:$NODEPATH/.bin/

export _Z_DATA=$HOME/.user-config/.z

export DD_ENV=dev
export DOGWEB_DEFAULT_CONFIG_PATH=$HOME/workspace/dogweb/development.ini
export KAFKA_SHARDING_DEFAULT_CONFIG_PATH=/home/vagrant/workspace/dogweb/etc/conf.d/kafka_sharding.toml
export DOGWEB_DEFAULT_CONFIG_PATH=$HOME/dogweb/development.ini
export KAFKA_SHARDING_DEFAULT_CONFIG_PATH=/home/vagrant/dogweb/etc/conf.d/kafka_sharding.toml

eval "$(gimme 1.4.2)"

# Aliases
alias gocheck="go fmt ./... && go tool vet -assign -shadow -bool -atomic -buildtags -composites -methods -printf -structtags -shift -unreachable -unsafeptr -rangeloops . && golint"
2 changes: 1 addition & 1 deletion zsh/muse-dd.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function get_hostname() {

if [[ $envname == *"No such file"* ]] || [[ $envname == "dev" ]]
then
if [[ $host == "dogbox-"* ]]
if [[ $host == "ubuntu-1204" ]]
then
echo "%{$C_YELLOW%}""vm""%{$C_RESET%}";
return;
Expand Down
2 changes: 1 addition & 1 deletion zsh/rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source ~/.jumpbox-tools/zsh/helpers
source $ZSH/oh-my-zsh.sh

# Special RC
if [[ $(hostname) == "dogbox-"* ]]
if [[ $(hostname) == "ubuntu-1204" ]]
then
source ~/.jumpbox-tools/zsh/custom_rc/dogbox
fi
Expand Down

0 comments on commit 1a67d89

Please sign in to comment.