Commit graph

20 commits

Author SHA1 Message Date
aee8638a3f bin: add ,colorchart 2021-07-22 17:03:32 +02:00
d1379ae956 bin: rename solarize -> ,solarize 2021-07-22 16:43:36 +02:00
67d62cbe89 bin: "namespace" dotfiles with ,
This is based on an idea from Brandon Rhodes fron:

    https://github.com/brandon-rhodes/homedir/tree/master/bin
2021-07-22 16:41:43 +02:00
02ca961623 bin: rename colorman -> ,man 2021-07-22 16:20:37 +02:00
94ead9f9c8 Save one process by exec-ing custom man 2021-07-22 15:29:09 +02:00
a5322715f6 solarize: fix substring error when /bin/sh is not bash
The substring expansion ${parameter:offset:length} is a bashism and does
not work when /bin/sh points to a shell other than bash, e.g. on Ubuntu.

This commit replaces this expansion with a call to awk, inspired by the
solution at:

        https://wiki.ubuntu.com/DashAsBinSh
2021-03-09 17:04:11 +01:00
2a8ca85a3e solarize: apply appropriate LS_COLORS 2021-02-25 19:35:07 +01:00
c58cc3131e environ: sort and highlight environment variables 2021-01-05 18:33:41 +01:00
4e29ff39e7 bash: fix LS_COLORS
The solarize script evalss the output of the dircolors(1) but the
LS_COLORS variable gets exported in its environmnent, not the calling
shell where we actually need it so ls(1) and other programs wiill
inherit it.

Therefore, the evaluation of the dircolors(1) output is moved to the
change_bg() function in the shell, so that the LS_COLORS variable is
available to any children of the shell.

The reason why I had missed this is that in most systems I have ls
aliased to exa, which does not care about LS_COLORS and has its own
coloring system. On cygwin, however, exa is not available and I noticed
that the colors were missind; and indeed, on systems with exa the colors
are also missing if I run ls as \ls.
2021-01-05 18:02:40 +01:00
b16ca6a626 replace ansible with bootstrap script 2021-01-03 17:24:48 +01:00
46efe2b268 Put all dotfiles into one "stow package"
This makes installation a lot easier, as we just need to type:

    stow -v dotfiles

instead of installing multiple packages and risking to forget something.
2019-02-18 23:19:28 +01:00
62c7b29714 Use stow instead of rcm for deployment 2019-02-16 01:35:04 +01:00
f0675327c8 [bootstrap] better name and location
I don't want this on my PATH, since it will typically be run only once
for a machine.
2018-04-15 11:30:01 +02:00
bfc2d9df84 [bootstrap] add brew packages 2018-04-15 11:29:24 +02:00
5b19853b94 [git] organize supporting files 2018-04-15 11:28:33 +02:00
c50ce5da67 Install reattach-to-user-namespace during setup 2018-04-08 01:32:53 +02:00
57352cac57 [git] add git-wtf command
Source:

    https://github.com/holman/dotfiles/blob/master/bin/git-wtf
2018-04-08 01:19:06 +02:00
e4b1fc02db Add setup script 2018-04-05 19:12:45 +02:00
d6eb384c91 Add git churn and what-the-hell-just-happened
Files copied from https://github.com/garybernhardt/dotfiles.git
2016-02-02 01:02:27 +01:00
f7b78bcda7 Add git cmd completion and status to bash prompt 2016-02-02 00:44:21 +01:00