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 onepull/170/head
parent
4261f3d8ec
commit
6e00b232e8
|
|
@ -68,10 +68,3 @@ fi
|
||||||
PREVIEW="less"
|
PREVIEW="less"
|
||||||
[ -s /usr/bin/gloobus-preview ] && PREVIEW="gloobus-preview"
|
[ -s /usr/bin/gloobus-preview ] && PREVIEW="gloobus-preview"
|
||||||
[ -s /Applications/Preview.app ] && PREVIEW="/Applications/Preview.app"
|
[ -s /Applications/Preview.app ] && PREVIEW="/Applications/Preview.app"
|
||||||
|
|
||||||
# Load all the Jekyll stuff
|
|
||||||
|
|
||||||
if [ -e $HOME/.jekyllconfig ]
|
|
||||||
then
|
|
||||||
. $HOME/.jekyllconfig
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
50
install.sh
50
install.sh
|
|
@ -1,32 +1,38 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
BASH_IT="$HOME/.bash_it"
|
BASH_IT="$HOME/.bash_it"
|
||||||
|
|
||||||
cp $HOME/.bash_profile $HOME/.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.bak"
|
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
|
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"
|
echo "Copied the template .bash_profile into ~/.bash_profile, edit this file to customize bash-it"
|
||||||
|
|
||||||
while true
|
if [ -e $HOME/.bash_profile.orig ]; then
|
||||||
do
|
while true
|
||||||
read -p "Do you use Jekyll? (If you don't know what Jekyll is, answer 'n') [Y/N] " RESP
|
do
|
||||||
|
echo ""
|
||||||
case $RESP
|
echo "Would you like to append your original .bash_profile (currently .bash_profile.orig) to the bash-it configuration?"
|
||||||
in
|
echo "Be advised that therefore you maybe overwrite existing bash-it configurations"
|
||||||
[yY])
|
read -p "Append? [y/N]" RESP
|
||||||
cp $HOME/.bash_it/template/jekyllconfig.template.bash $HOME/.jekyllconfig
|
case $RESP
|
||||||
echo "Copied the template .jekyllconfig into your home directory. Edit this file to customize bash-it for using the Jekyll plugins"
|
in
|
||||||
break
|
[yY])
|
||||||
;;
|
echo -e "# Load original .bash_profile\nsource $HOME/.bash_profile.orig" >> $HOME/.bash_profile
|
||||||
[nN])
|
echo "Appended .bash_profile.orig (your former .bash_profile) to .bash_profile (the current bash-it one)"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*)
|
"")
|
||||||
echo "Please enter Y or N"
|
;&
|
||||||
esac
|
[nN])
|
||||||
done
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Please enter Y or N"
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
function load_all() {
|
function load_all() {
|
||||||
file_type=$1
|
file_type=$1
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,15 @@
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'manage your jekyll site'
|
about-plugin 'manage your jekyll site'
|
||||||
|
|
||||||
|
# Load all the Jekyll stuff
|
||||||
|
|
||||||
|
if [ -e $HOME/.jekyllconfig ]
|
||||||
|
then
|
||||||
|
. $HOME/.jekyllconfig
|
||||||
|
fi
|
||||||
|
|
||||||
|
# functions
|
||||||
|
|
||||||
editpost() {
|
editpost() {
|
||||||
about 'edit a post'
|
about 'edit a post'
|
||||||
param '1: site directory'
|
param '1: site directory'
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
Loading…
Reference in New Issue