aboutsummaryrefslogtreecommitdiff
path: root/vim/config/digraphs.vim
Commit message (Expand)AuthorAgeFilesLines
* Move digraphs .vimrc config into subfileTom Ryder2017-10-281-0/+6
anctum.geek.nz> 2018-01-15 09:17:05 +1300 Refactor clog(1df), allow args and non-term stdin' href='/cgit/dotfiles.git/commit/bin/clog.sh?h=v1.70.0&id=edf0a0305169a57a6d9ec49df8628e8f213b9a86'>edf0a030
b7e47b09
edf0a030

8596a223

edf0a030


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
                                                                  
 






                                                                               
 

                                                                            

        


                    
# Record a timestamped message to a logfile, defaulting to ~/.clog

# Build the cat(1) command we'll run, wrapping it in rlwrap(1) if available and
# applicable.
if [ "$#" -eq 0 ] && [ -t 0 ] && command -v rlwrap >/dev/null 2>&1 ; then
    set -- rlwrap --history-filename=/dev/null cat -- "${@:--}"
else
    set -- cat -- "${@:--}"
fi

# Write the date, the input, and two dashes to $CLOG, defaulting to ~/.clog.
clog=${CLOG:-"$HOME"/.clog}
{
    date
    "$@"
    printf -- '--\n'
} >> "$clog"