removed Jekyll stuff as it should be in the extension directories

deleted jekyll template template/jekyllconfig.template.bash
removed sourcing of jekyll config from bash_it.sh and moved it to plugins/available/jekyll.plugin.bash
* install.sh:
removed jekyll stuff and improved .bash_profile handling
changed name from .bash_profile.bak to .bash_profile.orig
inserted option to append original .bash_profile to the new one
pull/170/head
sebokopter 2012-11-17 14:03:04 +01:00
parent 4261f3d8ec
commit 6e00b232e8
4 changed files with 37 additions and 50 deletions

View File

@ -68,10 +68,3 @@ fi
PREVIEW="less"
[ -s /usr/bin/gloobus-preview ] && PREVIEW="gloobus-preview"
[ -s /Applications/Preview.app ] && PREVIEW="/Applications/Preview.app"
# Load all the Jekyll stuff
if [ -e $HOME/.jekyllconfig ]
then
. $HOME/.jekyllconfig
fi

View File

@ -1,32 +1,38 @@
#!/usr/bin/env bash
BASH_IT="$HOME/.bash_it"
cp $HOME/.bash_profile $HOME/.bash_profile.bak
echo "Your original .bash_profile has been backed up to .bash_profile.bak"
if [ -e $HOME/.bash_profile ]; then
cp $HOME/.bash_profile $HOME/.bash_profile.orig
echo "Your original .bash_profile has been backed up to .bash_profile.orig"
fi
cp $HOME/.bash_it/template/bash_profile.template.bash $HOME/.bash_profile
echo "Copied the template .bash_profile into ~/.bash_profile, edit this file to customize bash-it"
while true
do
read -p "Do you use Jekyll? (If you don't know what Jekyll is, answer 'n') [Y/N] " RESP
case $RESP
in
[yY])
cp $HOME/.bash_it/template/jekyllconfig.template.bash $HOME/.jekyllconfig
echo "Copied the template .jekyllconfig into your home directory. Edit this file to customize bash-it for using the Jekyll plugins"
break
;;
[nN])
break
;;
*)
echo "Please enter Y or N"
esac
done
if [ -e $HOME/.bash_profile.orig ]; then
while true
do
echo ""
echo "Would you like to append your original .bash_profile (currently .bash_profile.orig) to the bash-it configuration?"
echo "Be advised that therefore you maybe overwrite existing bash-it configurations"
read -p "Append? [y/N]" RESP
case $RESP
in
[yY])
echo -e "# Load original .bash_profile\nsource $HOME/.bash_profile.orig" >> $HOME/.bash_profile
echo "Appended .bash_profile.orig (your former .bash_profile) to .bash_profile (the current bash-it one)"
break
;;
"")
;&
[nN])
break
;;
*)
echo "Please enter Y or N"
esac
done
fi
function load_all() {
file_type=$1

View File

@ -1,6 +1,15 @@
cite about-plugin
about-plugin 'manage your jekyll site'
# Load all the Jekyll stuff
if [ -e $HOME/.jekyllconfig ]
then
. $HOME/.jekyllconfig
fi
# functions
editpost() {
about 'edit a post'
param '1: site directory'

View File

@ -1,21 +0,0 @@
# This is a space-delimited list of your Jekyll project paths
SITES="$HOME/sites/project_1 $HOME/sites/project_2"
# This is another space-delimited list.
# This one is of the remote user@host:path location of your jekyll site
# NOTE: The locations of these must correspond to the locations
# of the sites in the first list
# For instance, the host for the first Jekyll site
# must be first in this list, the second second, etc.
REMOTES="user@host_1:path user@host_2:path"
# list of markup syntaxes to use for the sites,
# Same rules as above. Can be HTML, textile, or markdown
MARKUPS="markdown textile"
# If you want to use a different editor for Jekyll, change the value of this variable
JEKYLL_EDITOR="$EDITOR"