some cleanup

This commit is contained in:
Alexandre Dulaunoy 2011-04-03 14:29:53 +02:00
parent c8549edea1
commit 4fe72cad51
3 changed files with 6 additions and 6 deletions

View file

@ -14,4 +14,4 @@
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
r = remote -v show
r = remote -v show

View file

@ -5,7 +5,7 @@ bind-key C-a last-window
bind r source-file ~/.tmux.conf
set -g default-terminal "screen-256color"
set -g history-limit 1000
# THEME
set -g status-bg black
set -g status-fg white

View file

@ -16,7 +16,7 @@ NOTESPATH="${HOME}/.notes"
if ! [ -e "${NOTESPATH}" ]
then
mkdir ${NOTESPATH}
fi
fi
if ! [ -d "${NOTESPATH}/.git" ]
then
@ -25,7 +25,7 @@ then
fi
function GetPath {
echo ${NOTESPATH}/$( date +%Y )/$( date +%m )
echo ${NOTESPATH}/$( date +%Y )/$( date +%m )
}
TODAYPATH=$(GetPath)
@ -41,7 +41,7 @@ function Template {
if ! [ -e "$TODAYPATH" ]
then
mkdir -p ${TODAYPATH}
fi
fi
cat ${NOTESPATH}/${TMPFILE} >>${TODAYPATH}/$( date +%d)
rm ${NOTESPATH}/${TMPFILE}
@ -53,7 +53,7 @@ if [ "${ACTION}" == "new" ]
then
Template
vim ${TODAYPATH}/$( date +%d)
cd ${TODAYPATH}
cd ${TODAYPATH}
git add ${TODAYPATH}/$( date +%d)
git commit -m "${WHAT} saved" ${TODAYPATH}/$( date +%d)
elif [ "${ACTION}" == "edit" ]