2012-08-23 11:39:34 +02:00
|
|
|
XDG_CONFIG_HOME=$(HOME)/.config
|
|
|
|
XDG_CACHE_HOME=$(HOME)/.cache
|
|
|
|
ZSH_CONFIG=$(XDG_CONFIG_HOME)/zsh
|
|
|
|
ZSH_CACHE=$(XDG_CACHE_HOME)/zsh
|
|
|
|
ZSH_LOCAL=$(HOME)/.local
|
2011-02-08 18:10:36 +01:00
|
|
|
|
2011-01-10 11:30:46 +01:00
|
|
|
update:
|
2011-07-19 11:48:15 +02:00
|
|
|
git submodule foreach git pull
|
2011-01-10 11:30:46 +01:00
|
|
|
|
2012-08-23 11:39:34 +02:00
|
|
|
install: install-externals install-core
|
2011-02-07 17:18:41 +01:00
|
|
|
|
2011-02-08 18:10:36 +01:00
|
|
|
install-core:
|
|
|
|
@echo "Core install tasks."
|
|
|
|
@echo "Backing up your .zshrc iff neccessary..."
|
|
|
|
@!(ls $(HOME)/.zshrc > /dev/null 2> /dev/null) || mv $(HOME)/.zshrc $(PWD)/zshrc.bak # Make backup of -zshrc if necessary
|
|
|
|
@echo "Creating .zshrc in your home directory..."
|
|
|
|
@ln -s $(PWD)/zshrc $(HOME)/.zshrc # update the link to .zshrc
|
2012-08-23 11:39:34 +02:00
|
|
|
@echo "Creating directories..."
|
|
|
|
@mkdir -p $(XDG_CONFIG_HOME)
|
|
|
|
@mkdir -p $(ZSH_CACHE)
|
|
|
|
@mkdir -p $(ZSH_LOCAL)/bin
|
|
|
|
@mkdir -p $(ZSH_LOCAL)/share
|
|
|
|
@echo "Creating zsh directory in your .config directory iff neccessary..."
|
|
|
|
@(ls $(ZSH_CONFIG) > /dev/null 2> /dev/null) || ln -s $(PWD) $(ZSH_CONFIG) # Create zsh dir link if not existin
|
2011-02-08 18:10:36 +01:00
|
|
|
@echo "Creating functions.d directory iff neccessary (for autocompletion files)..."
|
2012-08-23 11:39:34 +02:00
|
|
|
@mkdir -p functions.d # folder for autocompletion files
|
|
|
|
@echo "Creating autojump link"
|
|
|
|
@(ls $(ZSH_LOCAL)/bin/autojump > /dev/null 2> /dev/null) || ln -s $(PWD)/autojump/autojump $(ZSH_LOCAL)/bin/autojump
|
2011-02-08 18:10:36 +01:00
|
|
|
@echo "Copying autojump autocompletion script..."
|
2012-08-23 11:39:34 +02:00
|
|
|
@cp -f autojump/_j functions.d/_j
|
2011-02-08 18:10:36 +01:00
|
|
|
@echo "Creating custom user files iff neccessary..."
|
2012-08-23 11:39:34 +02:00
|
|
|
@touch private.zsh # create custom files for users
|
2011-02-08 18:10:36 +01:00
|
|
|
@echo "DONE with core install tasks."
|
2011-07-19 11:48:15 +02:00
|
|
|
|
|
|
|
install-externals:
|
2012-08-23 11:39:34 +02:00
|
|
|
git submodule update --init
|
2011-07-19 11:48:15 +02:00
|
|
|
|