This commit is contained in:
David Tomaschik
2018-04-18 16:08:35 -07:00
4 changed files with 15 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
installed-prefs installed-prefs
.installed-prefs
*.swp *.swp
*~ *~
*.bak *.bak

View File

@@ -90,6 +90,7 @@ function jekyll {
echo " post Create a new post to publish immediately." echo " post Create a new post to publish immediately."
echo " publish Publish a draft post by name." echo " publish Publish a draft post by name."
echo " edit Edit a post." echo " edit Edit a post."
echo " dev Run local server with drafts and incremental."
;; ;;
draft) draft)
if [ -z "${SLUG}" ] ; then if [ -z "${SLUG}" ] ; then
@@ -139,6 +140,9 @@ function jekyll {
fi fi
${EDITOR} "${FILENAME}" ${EDITOR} "${FILENAME}"
;; ;;
dev)
command jekyll serve -D -I "$@"
;;
*) *)
command jekyll "$@" command jekyll "$@"
;; ;;

View File

@@ -33,9 +33,12 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi fi
# Change defaults from prezto # Overrides to prezto
unsetopt cdablevars unsetopt cdablevars
# No groupings of completions
zstyle ':completion:*' format ''
# .profile is universal # .profile is universal
# but after zprezto to use/override anything setup there # but after zprezto to use/override anything setup there
. ~/.profile . ~/.profile

View File

@@ -280,7 +280,11 @@ install_chrome() {
read_saved_prefs() { read_saved_prefs() {
# Can't use basedir here as we don't have it yet # Can't use basedir here as we don't have it yet
local pref_file=`dirname $0`/installed-prefs local old_pref_file=`dirname $0`/installed-prefs
local pref_file=`dirname $0`/.installed-prefs
if [ -f ${old_pref_file} -a ! -f ${pref_file} ] ; then
mv ${old_pref_file} ${pref_file}
fi
if [ -f ${pref_file} ] ; then if [ -f ${pref_file} ] ; then
verbose "Loading saved skel preferences from ${pref_file}" verbose "Loading saved skel preferences from ${pref_file}"
# source is a bashism # source is a bashism
@@ -290,7 +294,7 @@ read_saved_prefs() {
save_prefs() { save_prefs() {
test $SAVE = 1 || return 0 test $SAVE = 1 || return 0
local pref_file=${BASEDIR}/installed-prefs local pref_file=${BASEDIR}/.installed-prefs
(echo_pref BASEDIR (echo_pref BASEDIR
echo_pref MINIMAL echo_pref MINIMAL
echo_pref INSTALL_KEYS echo_pref INSTALL_KEYS