Commit graph

41 commits

Author SHA1 Message Date
8f4bcaca7d bin: make colors much more useful 2023-07-23 02:31:44 +02:00
696367cf81 bin: make colors256 much faster and have a better layout 2023-07-23 02:31:10 +02:00
9c1f441a1b bin: remove dependency on ncurses for styles 2023-07-23 02:28:39 +02:00
f323416c59 git: add side-by-side diffs 2023-07-13 02:38:34 +02:00
581c7d07e4 git: add git-delta as diff pager 2023-07-12 21:55:29 +02:00
d196bbb00b bin: add lock, a VERY simple encryption tool 2023-03-03 19:20:00 +01:00
f131f81c51 install: remove stow dependency and reorganize repo 2023-02-28 22:39:51 +01:00
61f0b64b84 install: make ~/.config a symlink into dotfiles 2022-02-07 19:26:29 +01:00
716709a783 bin: colortest now uses multiple modes to set colors 2022-01-25 00:52:17 +01:00
fffb78e27e Reorganize packages and simplify bootstrap 2021-11-18 00:21:57 +01:00
5b6ac63a38 themegen: use correct default content colors 2021-08-16 15:16:10 +02:00
37a8a8f5e9 environ: highlight env var values rather than names 2021-08-09 00:00:00 +02:00
a6f51c9be3 bin: remove comma from my scripts
The leading comma seemed like a good idea to namespace my commands but
in practice in turned out to just be annoying and not provide any real
benefits. So down with the comma...
2021-08-08 23:56:17 +02:00
3aae198ce5 bin: remove tmux wrapper script
Going back to the alias solution, which works for both bash and zsh, to
avoid having to search through the path for the real tmux after I remove
the leading comma from my custom command names.
2021-08-08 23:52:11 +02:00
4dd83006bc bin: remove need to man wrapper
Instead of wrapping man (1), I just export the LESS_TERMCAP_* variables
into the environment. This achieves the same thing as the wrapper
script, with the added benefit that less (1) will use the configured
colors in any of its invocations, not only via the wrapper script.
2021-08-08 23:46:15 +02:00
5d10202121 Remove support for light background
I never seemed to used and the complexity added by this was a bit
annoying.
2021-07-27 23:28:48 +02:00
29561f9852 bin: add simple terminal theme generator 2021-07-27 15:41:43 +02:00
39417823fe solarize: remove useless eval
No point in this eval, as it will not affect the environment of the
calling shell.
2021-07-26 19:23:56 +02:00
a75ea8ee8e solarize: minor refactor
The underscores are an artifact of when this script used to be part of
the bash profile and I didn't want the variables to be exposed too much.
This is no longer relevant.
2021-07-26 18:19:33 +02:00
e44b318e61 bash: turn aliases into scripts
This makes the common actions previously encoded as bash aliases
independent of the shell (I'm using /bin/sh for the scripts), which will
make a potential switch to zsh easier by having less bash-specific stuff
around.
2021-07-22 17:34:00 +02:00
c650622193 bin: get rid of scripts I have never used 2021-07-22 17:21:26 +02:00
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