mirror of
https://github.com/adulau/dotfiles.git
synced 2024-12-22 00:36:04 +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]
|
[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
|
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"
|
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
|
bind r source-file ~/.tmux.conf
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
set -g history-limit 1000
|
set -g history-limit 1000
|
||||||
|
|
||||||
# THEME
|
# THEME
|
||||||
set -g status-bg black
|
set -g status-bg black
|
||||||
set -g status-fg white
|
set -g status-fg white
|
||||||
|
|
|
@ -16,7 +16,7 @@ NOTESPATH="${HOME}/.notes"
|
||||||
if ! [ -e "${NOTESPATH}" ]
|
if ! [ -e "${NOTESPATH}" ]
|
||||||
then
|
then
|
||||||
mkdir ${NOTESPATH}
|
mkdir ${NOTESPATH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -d "${NOTESPATH}/.git" ]
|
if ! [ -d "${NOTESPATH}/.git" ]
|
||||||
then
|
then
|
||||||
|
@ -25,7 +25,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function GetPath {
|
function GetPath {
|
||||||
echo ${NOTESPATH}/$( date +%Y )/$( date +%m )
|
echo ${NOTESPATH}/$( date +%Y )/$( date +%m )
|
||||||
}
|
}
|
||||||
|
|
||||||
TODAYPATH=$(GetPath)
|
TODAYPATH=$(GetPath)
|
||||||
|
@ -41,7 +41,7 @@ function Template {
|
||||||
if ! [ -e "$TODAYPATH" ]
|
if ! [ -e "$TODAYPATH" ]
|
||||||
then
|
then
|
||||||
mkdir -p ${TODAYPATH}
|
mkdir -p ${TODAYPATH}
|
||||||
fi
|
fi
|
||||||
cat ${NOTESPATH}/${TMPFILE} >>${TODAYPATH}/$( date +%d)
|
cat ${NOTESPATH}/${TMPFILE} >>${TODAYPATH}/$( date +%d)
|
||||||
rm ${NOTESPATH}/${TMPFILE}
|
rm ${NOTESPATH}/${TMPFILE}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ if [ "${ACTION}" == "new" ]
|
||||||
then
|
then
|
||||||
Template
|
Template
|
||||||
vim ${TODAYPATH}/$( date +%d)
|
vim ${TODAYPATH}/$( date +%d)
|
||||||
cd ${TODAYPATH}
|
cd ${TODAYPATH}
|
||||||
git add ${TODAYPATH}/$( date +%d)
|
git add ${TODAYPATH}/$( date +%d)
|
||||||
git commit -m "${WHAT} saved" ${TODAYPATH}/$( date +%d)
|
git commit -m "${WHAT} saved" ${TODAYPATH}/$( date +%d)
|
||||||
elif [ "${ACTION}" == "edit" ]
|
elif [ "${ACTION}" == "edit" ]
|
||||||
|
|
Loading…
Reference in a new issue