From 4fe72cad5159879435022e75a447bec02c6ef7e5 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 3 Apr 2011 14:29:53 +0200 Subject: [PATCH] some cleanup --- .gitconfig | 2 +- .tmux.conf | 2 +- bin/notes | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitconfig b/.gitconfig index 2748293..e405ab1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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 diff --git a/.tmux.conf b/.tmux.conf index 1ab1210..50905c4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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 diff --git a/bin/notes b/bin/notes index a6638f6..b0c43e7 100755 --- a/bin/notes +++ b/bin/notes @@ -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" ]