X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=2cee09bc630b7f4ec408926ab7c5f0a4d99b459c;hb=382aa5b14b992e88caafccbfd58482d0ce27e35d;hp=9e60f1d058e8d0802d1f9ba2f25e81375d249494;hpb=ee38301e3a546f1cf5bc219cfb2a9cc73628431a;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 9e60f1d..2cee09b 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -15,6 +15,18 @@ # Adjustments would still go to the .zshrc.local file. ################################################################################ +## Upgrade path for old zshrc layout, assuming +## /etc/skel/.zshrc installed as .zshrc and +## /etc/zsh/zshrc installed as .zshrc.global +## and no ~/.zshrc.local exists yet. +if [ -r ~/.zshrc -a -r ~/.zshrc.global -a ! -r ~/.zshrc.local ] ; then + printf '-!-\n' + printf '-!- Looks like you are using the old zshrc layout of grml.\n' + printf '-!- Please read the notes in ~/.zshrc and ~/.zshrc.global\n' + printf '-!- and/or check out grml-zsh-refcard at http://grml.org/zsh/\n' + printf '-!-\n' +fi + ## Now, we'll give a few examples of what you might want to use in your ## .zshrc.local file (just copy'n'paste and uncomment it there):