~charles/dotfiles

70d3ff9d597de4615727c887b6d85dd83024d6f9 — Charles Daniels 2 years ago 0239c83
add docker-compose completions
3 files changed, 12 insertions(+), 2 deletions(-)

M install.sh
M overlay/.zshrc
A overlay/bin/clar
M install.sh => install.sh +5 -1
@@ 30,9 30,13 @@ curl -SsfLo ~/.zsh/zsh-history-substring-search.zsh --create-dirs \
    https://github.com/zsh-users/zsh-history-substring-search/raw/v1.0.1/zsh-history-substring-search.zsh

# zsh git completions
curl -SsfLo ~/.zsh/git-completion.zsh --create-dirs \
curl -SsfLo ~/.zsh/completions/git-completion.zsh --create-dirs \
    https://github.com/git/git/raw/v2.20.1/contrib/completion/git-completion.zsh

# zsh docker completions
curl -SsfLo ~/.zsh/completions/_docker-compose https://raw.githubusercontent.com/docker/compose/1.23.2/contrib/completion/zsh/_docker-compose 


# setup gitconfig
git_username="$(git config --get user.name)"
git_email="$(git config --get user.email)"

M overlay/.zshrc => overlay/.zshrc +2 -1
@@ 33,7 33,8 @@ bindkey -e
chmod -R 755 ~/.zsh

# git completions
fpath=(~/.zsh $fpath)
fpath=(~/.zsh/completions $fpath)

# http://stackoverflow.com/a/26479426
autoload -U compinit && compinit
zmodload -i zsh/complist

A overlay/bin/clar => overlay/bin/clar +5 -0
@@ 0,0 1,5 @@
#!/bin/sh

# alias for 'clear'

clear