Skip to content

Commit

Permalink
[release] version: 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Dec 31, 2019
1 parent fb6becb commit 5d1633b
Show file tree
Hide file tree
Showing 12 changed files with 3,566 additions and 12 deletions.
47 changes: 45 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# custom user variable
# export MYZS_USER="kamontat"

# export MYZS_SETTINGS_AUTO_OPEN_PATH=true
export MYZS_SETTINGS_AUTO_OPEN_PATH=true
# export MYZS_SETTINGS_WELCOME_MESSAGE="hello, world"

export MYZS_TYPE="FULLY" # either FULLY | SMALL
Expand All @@ -23,7 +23,7 @@ export MYZS_ROOT=$HOME/.myzs
# Dependenies settings #
##############################

export PG_SHOW_PERF=false
export PG_SHOW_PERF=true

export ZPLUG_HOME="${MYZS_ROOT}/zplug"

Expand All @@ -36,3 +36,46 @@ export SHELL="/usr/local/bin/zsh"
if test -f "${MYZS_ROOT}/init.sh"; then
source "${MYZS_ROOT}/init.sh"
fi

# ###-begin-pm2-completion-###
# ### credits to npm for the completion file model
# #
# # Installation: pm2 completion >> ~/.bashrc (or ~/.zshrc)
# #

# COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
# COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
# export COMP_WORDBREAKS

# if type complete &>/dev/null; then
# _pm2_completion () {
# local si="$IFS"
# IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
# COMP_LINE="$COMP_LINE" \
# COMP_POINT="$COMP_POINT" \
# pm2 completion -- "${COMP_WORDS[@]}" \
# 2>/dev/null)) || return $?

# IFS="$si"
# }
# complete -o default -F _pm2_completion pm2
# elif type compctl &>/dev/null; then
# _pm2_completion () {
# local cword line point words si
# read -Ac words
# read -cn cword
# let cword-=1
# read -l line
# read -ln point
# si="$IFS"
# IFS=$'\n' reply=($(COMP_CWORD="$cword" \
# COMP_LINE="$line" \
# COMP_POINT="$point" \
# pm2 completion -- "${words[@]}" \
# 2>/dev/null)) || return $?

# IFS="$si"
# }
# compctl -K _pm2_completion + -f + pm2
# fi
# ###-end-pm2-completion-###
8 changes: 5 additions & 3 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ fi

export __MYZS_ROOT="${MYZS_ROOT:-"$HOME/.myzs"}"
export __MYZS_SOURCE_CODE="${__MYZS_ROOT}/src"
export __MYZS_RESOURCES="${__MYZS_ROOT}/resources"
export __MYZS_ZPLUG="${ZPLUG_HOME:-${__MYZS_ROOT}/zplug}"

export __MYZS_USER="${MYZS_USER:-$USER}"
export __MYZS_OWNER="Kamontat Chantrachirathumrong"
export __MYZS_VERSION="4.0.0"
export __MYZS_VERSION="4.1.0"
export __MYZS_SINCE="21 Apr 2018"
export __MYZS_LAST_UPDATED="23 Sep 2019"
export __MYZS_LAST_UPDATED="31 Dec 2019"
export __MYZS_LICENSE="MIT"

export __MYZS_CHANGELOGS=(
"[4.1.0](31 Dec 2019){add more alias, fix some log detail missing, update path to avoid duplication}"
"[4.0.0](23 Sep 2019){first version released}"
)

Expand Down Expand Up @@ -99,7 +101,7 @@ done
pg_stop

if __myzs_is_fully; then
__myzs_load "$MYZS_ROOT/.env"
__myzs_load "environment file" "$MYZS_ROOT/.env"

if [[ "$MYZS_SETTINGS_AUTO_OPEN_PATH" == "true" ]]; then
__clipboard="$(pbpaste)"
Expand Down
Loading

0 comments on commit 5d1633b

Please sign in to comment.