My zsh configuration
git clone https://mcol.xyz/code/zshrc
Log | Files | Refs | Submodules | README

commit d9d078ed94f34738cfed89bd108f02efc31b3801
parent 164da2d9115284db04bf8158ff24b32a89dcb111
Author: mcol <mcol@posteo.net>
Date:   Fri, 15 Feb 2019 11:01:41 +0000

moved z_data into repo, removing .config dependency. Neatified readme. Backed up old ~/.zshrc

Diffstat:
A.gitignore | 1+
Minstall | 18+++++++++++++++---
Mreadme.md | 6++++--
Mzshrc | 2+-
4 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +z_data diff --git a/install b/install @@ -3,11 +3,23 @@ dir=$(dirname "$(readlink -f "$0")") # source this zshrc from ~/.zshrc -echo "source $dir/zshrc" >> $HOME/.zshrc +if [[ -f ~/.zshrc ]] +then + backup=~/.zshrc_$(date +%m%d-%H%M%S) + mv ~/.zshrc $backup + echo "Moved pre-existing ~/.zshrc to $backup" +fi +echo "source $dir/zshrc" > $HOME/.zshrc +echo "Created new ~/.zshrc to source this repo" -# we may need a config directory for a plugin -[[ ! -d $HOME/.config ]] && mkdir $HOME/.config # if installation didn't include submodules they need installing git --git-dir=$dir/.git submodule init git --git-dir=$dir/.git submodule update + + +# inform if zsh is not yet installed +if ! type zsh 2> /dev/null +then + echo "zsh is not installed on this system." +fi diff --git a/readme.md b/readme.md @@ -2,6 +2,8 @@ my personal zsh env git clone --recurse-submodules https://github.com/mcolligan/zshrc.git ~/.zsh -and run install +and run install. -locale-gen en_US.UTF-8 appears to be required on raspberry pi + locale-gen en_US.UTF-8 + +appears to be required on raspberry pi diff --git a/zshrc b/zshrc @@ -29,7 +29,7 @@ so $HOME/.aliases # machine-specific aliases ZSH_THEME="ban" so $ZSH/themes/$ZSH_THEME.zsh-theme -_Z_DATA=$HOME/.config/z +_Z_DATA=$ZSH/z_data so $ZSH/z/z.sh ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)