aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-19 23:43:29 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-19 23:43:29 +1300
commit0eb0a3a21f894f8ac48703fcc52247db1d8b88c8 (patch)
tree093c2479feb70548882938177d0edb95d47056e9 /man
parentBump version number to 0.18.0 (diff)
downloaddotfiles-0eb0a3a21f894f8ac48703fcc52247db1d8b88c8.tar.gz
dotfiles-0eb0a3a21f894f8ac48703fcc52247db1d8b88c8.zip
Rebuild dotfiles(7) manual from README.md
Diffstat (limited to 'man')
-rw-r--r--man/man7/dotfiles.7df11
1 files changed, 6 insertions, 5 deletions
diff --git a/man/man7/dotfiles.7df b/man/man7/dotfiles.7df
index bdecae9a..df5d9dfa 100644
--- a/man/man7/dotfiles.7df
+++ b/man/man7/dotfiles.7df
@@ -489,6 +489,12 @@ structures like functions, I like to implement it as a plugin in
\f[C]~/.vim/plugin\f[] and/or \f[C]~/.vim/autoload\f[].
There's documentation for each of those in \f[C]~/.vim/doc\f[].
.PP
+Any/all of those plugins may eventually be spun off into their own
+repositories in the future, but for the moment they live here.
+You can create distribution packages for them with
+\f[C]make\ dist\-vim\-plugin\f[]; they will be created in
+\f[C]vim/dist\f[].
+.PP
I also define a few rules specific to file types I often edit in
\f[C]~/.vim/after/ftplugin\f[], including some local mappings for
checking, linting, and tidying, and a few more in
@@ -497,11 +503,6 @@ There are also a few tweaks to core syntax files in
\f[C]~/.vim/after/syntax\f[], especially for shell script
(\f[C]sh.vim\f[]).
.PP
-Any/all of the plugins may eventually be spun off into their own
-repositories in the future, but for the moment they live here.
-Contact me if you find one of them useful and you'd like to see it in
-its own distribution.
-.PP
Third\-party plugins are in submodules in \f[C]~/.vim/bundle\f[], loaded
using Tim Pope's pathogen.vim (https://github.com/tpope/vim-pathogen).
.SS Scripts
lor: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Only if shell is interactive
case $- in
    *i*) ;;
    *) return ;;
esac

# Only if not in a tmux window
[ -z "$TMUX" ] || return

# Not if ~/.hushlogin exists
[ -e "$HOME"/.hushlogin ] && return

# Run all of this in a subshell to clear it away afterwards
(
    # Temporary helper function
    welcome() {
        [ -e "$HOME"/.welcome/"$1" ] || return
        command -v "$1" >/dev/null 2>&1 || return
    }

    # Show a fortune
    if welcome fortune ; then
        [ -d "$HOME"/.local/share/games/fortunes ] &&
            : "${FORTUNE_PATH:="$HOME"/.local/share/games/fortunes}"
        fortune -s "$FORTUNE_PATH"
        printf '\n'
    fi

    # Print today's reminders with asterisks
    if welcome rem ; then
        rem -hq | sed 's/^/* /'
        printf '\n'
    fi

    # Run verse(1) if we haven't seen it already today
    if welcome verse ; then
        [ -f "$HOME"/.verse ] && read -r last <"$HOME"/.verse
        now=$(date +%Y%m%d)
        if [ "$now" -gt "${last:-0}" ] ; then
            verse
            printf '\n'
            printf '%s\n' "$now" >"$HOME"/.verse
        fi
    fi
)