Commit graph

433 commits

Author SHA1 Message Date
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
579a870230 bootstrap: make it runnable from anywhere
I was previously using relative paths to $PWD with the implicit
assumption that I would always run `bootstrap` from the dotfiles
root directory. This commit fixes that.
2021-07-22 16:24:17 +02:00
d44a8175d1 bootstrap: prune broken links
The links are only removed if they are broken and the target was within
the dotfiles bin directory. This makes it easier to deal with removed
and renamed scripts so I don't have to go hunt for them by hand.
2021-07-22 16:22:42 +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
e988871cba bash: only export MANPATH if manpath(1) is available 2021-07-07 01:18:07 +02:00
3174fc112f Add .XCompose 2021-07-05 15:15:09 +02:00
23a6732a40 bootstrap: fix XDG directory definitions 2021-07-05 15:14:20 +02:00
edb6806c63 git: remove aliases I never use 2021-07-04 18:00:17 +02:00
98d82fc976 ssh: enable ForwardAgent 2021-06-29 16:30:09 +02:00
6a48c76cfc ssh: use identities from ssh-agent
This makes it possible to use agent forwarding ans thus I no longer need
a private key for each server.
2021-06-01 16:14:15 +02:00
1de7d27c2b tmux: fix location of tmux.conf when reloading 2021-05-27 17:47:12 +02:00
299637c7cc tmux: use C-space as prefix
Turns out C-b is quite useful for navigation in vim and other programs.
Also, the C-space issue seems to only happen when using Alacritty and
WSL, so I'll just avoid this combination for now.
2021-05-27 17:43:33 +02:00
41050707f7 tmux: fix status line right side length
The length of 32 was too small and causing clipping for slightly longer
host names, e.g. at work.
2021-03-09 17:39:21 +01:00
25f8aee1d9 tmux: reduce escape-time to 50ms
The default escape-time of 500ms made it very annoying to use vim inside
of tmux and 50ms seems to make vim responsive enough.
2021-03-09 17:07:10 +01: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
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