Added shorter aliases

This commit is contained in:
Jan Jastrow 2021-09-02 23:58:24 +02:00
parent c61f97a55c
commit 5a3b8d3a16

View File

@ -18,7 +18,6 @@ alias nnote_gitadd="(cd $nnote_dir/ && git add $nnote_local_file && git commit -
alias ttodo_gitadd="(cd $nnote_dir/ && git add $ttodo_local_file && git commit -m \"update by $HOST\" && git push --quiet -u --no-progress)"
alias nnote_pull="(cd $nnote_dir && git pull)"
# Print current todos into fresh spawned shell
if [[ ! -z $(grep '[^[:space:]]' $(printf "$nnote_dir" "$@")/$HOST/todo.md) ]]; then
echo '==============| Local ToDos |=============='
@ -30,3 +29,8 @@ fi
# external alias
alias nnote="nano $nnote_local_file && nnote_gitadd"
alias ttodo="nano $ttodo_local_file && ttodo_gitadd"
## shorts
alias nn="nnote"
alias tt="ttodo"
alias nnu="nnote_pull"