1
0
Fork 0

initial zetup

pull/1260/head
Bin 8 years ago
parent 4f19700919
commit 839d9ada35

@ -32,7 +32,11 @@ zstyle ':prezto:load' pmodule \
'spectrum' \
'utility' \
'completion' \
'prompt'
'git' \
'node' \
'prompt' \
'syntax-highlighting' \
'history-substring-search'
#
# Autosuggestions
@ -143,13 +147,13 @@ zstyle ':prezto:module:prompt' theme 'sorin'
#
# Auto set the tab and window titles.
# zstyle ':prezto:module:terminal' auto-title 'yes'
zstyle ':prezto:module:terminal' auto-title 'yes'
# Set the window title format.
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
# Set the tab title format.
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
#
# Tmux

@ -17,8 +17,8 @@ fi
# Editors
#
export EDITOR='nano'
export VISUAL='nano'
export EDITOR="code -n"
export VISUAL="code -n"
export PAGER='less'
#
@ -29,6 +29,24 @@ if [[ -z "$LANG" ]]; then
export LANG='en_US.UTF-8'
fi
#
# Others
#
export MYSRC=$HOME/src
export MYSW=$HOME/sw
export MYSCRIPTS=$MYSRC/scripts
# AWS
export AWS_DEFAULT_REGION=us-west-2
# GO
export GOROOT=/usr/local/go
export GOPATH=$MYSRC/gopath
# java
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
#
# Paths
#
@ -45,6 +63,8 @@ typeset -gU cdpath fpath mailpath path
path=(
/usr/local/{bin,sbin}
$path
$GOPATH/bin
$MYSCRIPTS
)
#

@ -1,13 +1,34 @@
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
############################
# Customize to your needs...
############################
export PSQL_EDITOR="vi"
export KAFKA09=$MYSW/kafka
export HADOOP_HOME=/usr/local/opt/hadoop/libexec/etc/hadoop
export HIVE_HOME=/usr/local/opt/hive/libexec
export HCAT_HOME=/usr/local/opt/hive/libexec/hcatalog
export HOMEBREW_CASK_OPTS=--caskroom=/opt/homebrew-cask/Caskroom
# node
export NVM_DIR="$HOME/.nvm"
# alias
alias sz='source ~/.zshrc'
alias ez='code -n ~/.zprezto/'
alias cdsrc='cd $MYSRC'
alias cdsw='cd $MYSW'
alias cdscript='cd $MYSCRIPTS'
alias cdapi='cd $MYSRC/api-server && nvm use'
alias cdevent-sink='cd $MYSRC/event-sink'
alias cdui='cd $MYSRC/ui'
alias cdkafka='cd $KAFKA09'
alias cdspark='cd $MYSW/spark'
source $MYSCRIPTS/appuri.env
source $MYSCRIPTS/api-server.env

Loading…
Cancel
Save