Commit graph

564 commits

Author SHA1 Message Date
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
9c4c579938 bash: improve operating system detection
The -s flag to `uname` makes sure that only the string "Darwin" is
printed, so the comparison is safer.
2021-02-25 19:41:34 +01:00
e5f4c25593 bash: shorten PATH manipulation 2021-02-25 19:39:59 +01:00
768e53ec2e alacritty: add window padding 2021-02-25 19:38:05 +01:00
9bdd042ed1 vim: remove timeout on mappings and key codes 2021-02-25 19:37:16 +01:00
2a8ca85a3e solarize: apply appropriate LS_COLORS 2021-02-25 19:35:07 +01:00
bc307870ff vim: remove jk mapping to ESC 2021-02-23 17:28:47 +01:00
8fb66ffa6c bash: render prompt in the same color as separators 2021-02-23 17:27:53 +01:00
f1ba6be31c bash: exa: only ignore .git directory when showing tree 2021-02-23 17:26:31 +01:00
666d87d7b4 tmux: use C-b as prefix
This is easy to type on the Moonlander and prevents issues on Windows
with WSL, where C-space was being eaten by the console emulator.
2021-02-23 17:23:08 +01:00
c58cc3131e environ: sort and highlight environment variables 2021-01-05 18:33:41 +01:00
75bbabeb40 fix path to ssh config so git-crypt can decrypt it 2021-01-05 18:13:09 +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
f01bc4d599 readline: change cursor shape when entering vi cmd mode 2021-01-03 23:53:09 +01:00
57aaa79a30 git: use nvim as mergetool (and difftool) 2021-01-03 23:50:49 +01:00
3ad4f7d72b vim: replace vim with neovim 2021-01-03 23:37:13 +01:00
06f8655392 vim: replace airline with lightline 2021-01-03 22:21:05 +01:00
9982f4bbb9 vim: replace CTRLP repository with maintained one 2021-01-03 22:20:30 +01:00
c141e51b66 bash: check for brew after PATH manipulation 2021-01-03 22:19:52 +01:00
b16ca6a626 replace ansible with bootstrap script 2021-01-03 17:24:48 +01:00
10cb54744c ssh: use config.d for local VM connections 2020-12-30 21:06:48 +01:00
3c1341c2b8 vim: fix string comparisons that should be case-insensitive
Regardless of the 'ignorecase' option:

    ==#   does case sensitive comparisons
    ==?   does case INsensitive comparisons

All the comparisons that were fixed here should really be case
insensitive (e.g. we want to handle BACKGROUND set to DARK instead of
dark and so on...).
2020-12-28 01:00:41 +01:00
5298d16c90 bash: fix readline getting confused with the line width
Non-printing characters (like SGR commands to the terminal) need to be
escaped with \[ and \], otherwise readline thinks that these characters
actually take up space and gets confused.

More info: http://mywiki.wooledge.org/BashFAQ/053
2020-12-28 00:56:16 +01:00
b19c5282b3 bash: make lt alias more regular (using either exa or tree) 2020-12-28 00:30:42 +01:00
1ace88fb90 alacritty: welcome to the team 2020-12-28 00:19:28 +01:00
3cb2b20788 vim: make background transparent
This way vim uses whatever the terminal has set as its background color
and therefore will "inherit" the terminal's transparency if that is in
use.
2020-12-28 00:15:59 +01:00
b009800b31 bash: factor out terminal setup into a separate script 2020-12-26 03:37:55 +01:00
59cff72b54 bash: remove aliases that turned out to be useless 2020-12-26 02:41:16 +01:00
75b6b3a2dc bash: factor out solarized into separate script 2020-12-26 02:37:50 +01:00
2859cbf949 bash: factor out styletest into separate script 2020-12-26 02:23:31 +01:00
76435a29bc bash: factor out colortest into separate script 2020-12-26 02:19:14 +01:00
4df02f2b0f bash: factor out colorized man into colorman script 2020-12-26 02:11:49 +01:00
0f8a8570eb bash: use XDG variables if already defined 2020-12-26 01:15:05 +01:00
cd594f0c9f vim: get rid of silly custom folding 2020-12-26 00:52:46 +01:00
0c3992e550 vim: fix broken listchars 2020-12-26 00:45:31 +01:00
a5c85f69bb vim: better command line completion 2020-12-26 00:39:32 +01:00
3e9fa8abe5 update README 2020-12-23 04:16:49 +00:00
85570319f3 ssh: use new default key 2020-12-22 23:14:02 +01:00
cdbefbc811 fix git-crypt filter for ssh config 2020-12-22 22:51:38 +01:00
ed758fd63b ansible: install vim plugins only if not yet installed 2020-12-22 15:52:09 +01:00
ae26678665 ansible: simplify playbook execution and update README 2020-12-22 14:44:09 +01:00
7cf5ac21ed ansible: no cows (fun, but harder to read stuff) 2020-12-22 14:31:00 +01:00
23b4f2117b ansible: silence python interpreter warning on macOS 2020-12-22 14:29:49 +01:00
c3402a3b36 ansible: add packages role 2020-12-22 13:48:59 +01:00
737f308f61 ansible: rename role: common -> dotfiles 2020-12-22 13:07:05 +01:00
21e777b014 ansible: ask for git user & email at start 2020-12-22 12:59:40 +01:00
6d415e7d0e ansible: simplify common role 2020-12-22 12:58:54 +01:00
6e12627362 readline: add back C-a and C-e from emacs mode 2020-12-22 12:10:28 +01:00
d6b48bb620 readline: refactor for readability 2020-12-22 11:54:54 +01:00
c12dd1c785 bash: make vim syntax highlighting happy 2020-12-22 11:51:57 +01:00