Commit graph

511 commits

Author SHA1 Message Date
b2b712c67b profile: move color definitions into profile 2021-08-08 23:43:52 +02:00
09534e15d0 profile: check for neovim after PATH manipulation
The reason is that neovim might be installed in one of the paths added
during the manipulation (e.g., for some reason neovim was installed
under ~/.local/bin).
2021-08-08 23:36:23 +02:00
cf01371f00 zsh: adjust profile/.zshenv for zsh and add .zshrc 2021-08-07 02:27:20 +02:00
a52bc02768 bash: get rid of ~/.profile 2021-08-07 02:00:55 +02:00
4ea59a778d bootstrap: better handling of dry run 2021-08-07 01:33:55 +02:00
9b3bc72eaf bash: factor out profile and aliases
This is a preparation to start experimenting with zsh. The idea is to
share the aliases and environment setup between both shells to avoid
having a bunch of duplication. Even if I decide to stick with zsh it
would be nice to keep the bash configs around for systems where I might
not want to install zsh for some reason. We'll see how this goes...
2021-08-07 01:33:26 +02:00
d550659828 alacritty: invoke bash with --login 2021-08-07 00:52:59 +02:00
26fa7131ae vim: show partial results as I type commands 2021-08-06 23:30:57 +02:00
21844ac96a vim: add mapping to move lines up and down 2021-08-02 01:45:36 +02:00
1abb2f9597 alacritty: make alt/option usable on macOS 2021-08-02 01:43:13 +02:00
300fef2ac2 alacritty: make background opaque 2021-08-01 17:32:01 +02:00
d5be6cd996 alacritty: make character under cursor visible
Using the block cursor was hiding the character under the cursor because
I had set the cursor text color to the same as the cursor itself. This
commit fixes that.
2021-08-01 12:56:31 +02:00
083ac8d90e vim: improve status line 2021-07-30 18:23:34 +02:00
3012a2757a Fix minor typos 2021-07-30 13:17:25 +02:00
14a8260771 vim: tweak statusline 2021-07-28 01:06:19 +02:00
be3e854f7e alacritty: bump up font size a bit 2021-07-27 23:30:53 +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
f1ffa412f5 mintty: use bold font and line cursor 2021-07-27 14:54:33 +02:00
a377da1ab9 mintty: use solarized dark (static config) 2021-07-27 14:47:01 +02:00
187bc36cdf alacritty: use solarized dark (static config) 2021-07-27 14:46:35 +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
6a7a82e87b vim: disable concealment for json files 2021-07-23 19:37:52 +02:00
4a5fc4d54b jupyter: enable line numbers 2021-07-23 15:52:58 +02:00
064c17817b jupyter: hided notebook header and toolbar 2021-07-23 15:50:36 +02:00
03bfd16055 jupyter: disable bracket auto complete 2021-07-23 15:48:56 +02:00
a9ee9983b3 bash: remove unused shell aliases and functions 2021-07-22 17:34:09 +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
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