Extract zgen and tmuxifier

This commit is contained in:
Henrik Lissner 2016-02-25 18:36:31 -05:00
parent 6177fb5026
commit 1bc935d2d4
5 changed files with 9 additions and 10 deletions

6
.gitmodules vendored
View file

@ -1,6 +0,0 @@
[submodule "zsh/zgen"]
path = zsh/zgen
url = https://github.com/tarjoilija/zgen
[submodule "tmux/tmuxifier"]
path = tmux/tmuxifier
url = https://github.com/jimeh/tmuxifier

View file

@ -1,9 +1,11 @@
#!/usr/bin/env bash
_clone() { [[ -d "$2" ]] || git clone --recursve "$1" "$2"; }
_clone() { [ -d "$2" ] || git clone --recursive "$1" "$2"; }
# In case this file was run via curl
_clone https://github.com/hlissner/dotfiles ~/.dotfiles
_clone https://github.com/tarjoilija/zgen ~/.zgen
_clone https://github.com/jimeh/tmuxifier ~/.tmuxifier
shopt -s extglob
for rcfile in "${HOME}"/.dotfiles/!(.*|bin|scripts|*.md|install.sh)

@ -1 +0,0 @@
Subproject commit dce4fb3ad24d076ead56aa3eabbe7204ce43e991

@ -1 +0,0 @@
Subproject commit 3a0f26ed2f2d0b7b2f34fa5bac3c3a58d58cfc59

7
zshrc
View file

@ -1,11 +1,16 @@
### zshrc
# By Henrik Lissner <henrik@lissner.net>
if [ ! -d ~/.zgen ]; then
echo "Zgen isn't installed! Run install.sh"
exit 1
fi
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZGEN_AUTOLOAD_COMPINIT=true
[[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false
load zsh/zgen/zgen.zsh
source ~/.zgen/zgen.zsh
if ! zgen saved; then
echo "Creating zgen save"
[[ -d "$CACHE_DIR" ]] && rm -f "$CACHE_DIR/*"