Skip to content

Commit

Permalink
Improve completion
Browse files Browse the repository at this point in the history
  • Loading branch information
okamos committed Jun 6, 2018
1 parent 3ecd40b commit b31d6da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .init.zplug
Expand Up @@ -2,14 +2,16 @@
source ~/.zplug/init.zsh

zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-completions"
zplug "yonchu/zsh-vcs-prompt", use:"zshrc.sh"
zplug "mollifier/anyframe"
zplug "b4b4r07/enhancd", use:"init.sh"
zplug "greymd/tmux-xpanes"

if ! zplug check; then
zplug install
if [ ! ~/.zplug/last_zshrc_check_time -nt ~/.zshrc ]; then
touch ~/.zplug/last_zshrc_check_time
if ! zplug check; then
zplug install
fi
fi

zplug load
Expand All @@ -27,5 +29,4 @@ if zplug check mollifier/anyframe; then
bindkey '^x^i' anyframe-widget-put-history

bindkey '^x^k' anyframe-widget-kill

fi
7 changes: 1 addition & 6 deletions .zshrc
Expand Up @@ -23,7 +23,6 @@ setopt notify
setopt equals

### Complement ###
autoload -U compinit; compinit
setopt auto_list # 補完候補を一覧で表示する(d)
setopt auto_menu # 補完キー連打で補完候補を順に表示する(d)
setopt list_packed
Expand Down Expand Up @@ -73,11 +72,6 @@ PROMPT=$tmp_prompt
# ------------------------------
# Other Settings
# ------------------------------
### path ###
has() {
type "$1" > /dev/null 2>&1
}

case "${OSTYPE}" in
darwin*|linux-gnu)
export PATH=./vendor/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH
Expand All @@ -99,6 +93,7 @@ export PATH=$PATH:$HOME/.cargo/bin
[ -f ~/.zplug/init.zsh ] && source ~/.init.zplug
[ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh

fpath=(/usr/local/share/zsh/site-functions $fpath)
if [ -d ~/dev/google-cloud-sdk ]; then
source /Users/okamos/dev/google-cloud-sdk/completion.zsh.inc
source /Users/okamos/dev/google-cloud-sdk/path.zsh.inc
Expand Down

0 comments on commit b31d6da

Please sign in to comment.