Commit d9d078ed94f34738cfed89bd108f02efc31b3801 Parent: 164da2d9115284db04bf8158ff24b32a89dcb111 Author: mcol <mcol@posteo.net> Date: 2019-02-15 11:01:41 +0000 Committer: mcol <mcol@posteo.net> Committed: 2019-02-15 11:01:41 +0000 moved z_data into repo, removing .config dependency. Neatified readme. Backed up old ~/.zshrc
zshrc Modified
@@ -29,7 +29,7 @@ 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)
readme.md Modified
@@ -2,6 +2,8 @@ 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
install Modified
@@ -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
.gitignore Added
@@ -0,0 +1 @@
+z_data