Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
afbda09
)
Added check to see if user is using vim with newentry alias.
author
Mark Szymanski
<mrman208@me.com>
Tue, 2 Nov 2010 01:04:28 +0000
(20:04 -0500)
committer
Mark Szymanski
<mrman208@me.com>
Tue, 2 Nov 2010 01:04:28 +0000
(20:04 -0500)
aliases/jekyll.aliases.bash
patch
|
blob
|
history
diff --git
a/aliases/jekyll.aliases.bash
b/aliases/jekyll.aliases.bash
index
a3e3fc0
..
a9fed04
100644
(file)
--- a/
aliases/jekyll.aliases.bash
+++ b/
aliases/jekyll.aliases.bash
@@
-1,6
+1,10
@@
-# Open the root of your site in your
favorite editor
+# Open the root of your site in your
vim or cd to it
-alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
+if [ $EDITOR = "vim"]
+then
+ alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
+else
+ alias newentry="cd $JEKYLL_LOCAL_ROOT"
# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog)