mirror of
https://github.com/adulau/dotfiles.git
synced 2024-12-12 11:57:23 +00:00
some cleanup
This commit is contained in:
parent
c8549edea1
commit
4fe72cad51
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in a new issue