export LSCOLORS=GxFxCxDxBxegedabagacad
-# minimal prompt
-# export PS1="
-# $PWD
-# : "
+function parse_git_branch {
+ ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+ echo "("${ref#refs/heads/}")"
+}
+#Black 0;30 Dark Gray 1;30
+#Blue 0;34 Light Blue 1;34
+#Green 0;32 Light Green 1;32
+#Cyan 0;36 Light Cyan 1;36
+#Red 0;31 Light Red 1;31
+#Purple 0;35 Light Purple 1;35
+#Brown 0;33 Yellow 1;33
+#Light Gray 0;37 White 1;37
-# current git branch
-export PS1="
-\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"
-print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').
-gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]
-$\[\033[00m\] "
+# colors
+RED="\[\033[31m\]"
+GREEN="\[\033[32m\]"
+YELLOW="\[\033[33m\]"
+BLUE="\[\033[0;34m\]"
+BLUE_B="\[\033[1;34m\]"
+WHITE_B="\[\033[1;37m\]"
+NO_COLOR="\[\033[0m\]"
+# prompt with git repo
+export PS1="$WHITE_B\u@\h $BLUE_B\w $RED\$(parse_git_branch) $NO_COLOR \n$BLUE_B\$ $NO_COLOR"
+export PS2="$BLUE_B> $NO_COLOR";
# aliases
alias ff="find . -type f -name "
title = quilime
-template = index
+template = home
body, table {
font-family: arial, monaco, monospace;
line-height:1.4em;
- font-size:14px;
}
body {
padding-top:0;
margin-top:0;
margin-bottom:30px;
- font-size
}
h1, h2, h3, h4, h5, h6 {
- font-weight:normal;
color:#666;
- font-size:1em;
- text-shadow:1px 1px 3px #000;
+ font-size:1.2em;
letter-spacing:0.2em;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
color:#666;
}
h1 a {
- color:#f0a;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
- color:#fff;
}
; general settings
site_title = quilime
clean_urls = 1
-limit = 15
+limit = 100
; http://php.net/manual/en/function.date.php
date_format = M d Y, h:i:s A T
<? endforeach; ?>
</div>
- <a href="/index">index →</a>
+ <a href="/index">↑ index</a>
<br />
<br />
<br />
</div>
<div class="metadata">
+<?php if (isset($entry['is_single']) && $entry['is_single']) { ?>
<a href="/<?=$entry['url']?>">#</a>
<br />
<span title="<?=get_relative_time($entry['timestamp']);?>"><?=date("F d, Y", $entry['timestamp'])?></span> in
<a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>' . implode(', ', $entry['tags']); ?>
- </div>
+<?php } ?>
+</div>
<?
if (isset($entry['is_single']) && $entry['is_single'] && $entry['comments_enabled'])
<ul id="nav">
- <li><a href="/">home</a></li>
+ <li><a href="/"><?=SITE_TITLE?></a></li>
<br />
<li><a href="/<?=$dir['url']?>"><?=$dir['name']?></a></li>
<? endforeach; ?>
- <br />
-
<!-- <li><a href="/agg">aggregate</a></li> -->
<li><a href="/photo">photo</a></li>
<li><a href="/links">links</a></li>
- <br />
- <li><a href="/about">about</a></li>
- <li><a href="/.rss">feed</a></li>
<br />
<br />