Commit graph

442 commits

Author SHA1 Message Date
cb94595707 vim: highlight entire line of cursor
Turns out that only having the line number highlighted is annoying.
2020-12-16 17:46:43 +01:00
ec093fe272 git: add warning to not edit config.host 2020-12-16 00:45:08 +01:00
81c785f04b bash: source all files under ~/.local/etc/bash 2020-12-16 00:33:15 +01:00
eb2662d1dc vim: source all files under ~/.local/etc/vim 2020-12-16 00:18:37 +01:00
4dcc5ab8e5 vim: move .cache/vim/viminfo -> .local/share/vim/viminfo 2020-12-15 23:53:31 +01:00
195ec4f95e bash: move .cache/bash/history -> .local/share/bash/history 2020-12-15 23:49:49 +01:00
f2ed315579 python: move .cache/python/history -> .local/share/python/history 2020-12-15 23:46:14 +01:00
c361c78dd6 bash: move .cache/less/history -> .local/share/less/history 2020-12-15 23:41:05 +01:00
036f2ac143 vim: use proper syntax highlighting for bash profile 2020-12-15 23:39:58 +01:00
85b4d48980 vim: don't use powerline symbols
These symbols need custom fonts to be installed, which is a pain to
manage.
2020-12-15 23:39:03 +01:00
54a15259a1 packages: disable casks on homebrew
This is not running properly now. Will investigate at some point in the
future, but may as well just disable entirely - we'll see...
2020-12-15 23:35:25 +01:00
917dc41a79 vim: remove superfluous search mappings
Now that I am using 'ignorecase' and 'smartcase' there is no need for
this anymore.
2020-12-15 19:52:42 +01:00
978021fb92 vim: fix airline 2020-12-15 19:50:51 +01:00
b895988ce3 vim: better command line completion 2020-12-15 17:47:20 +01:00
0efe9f8507 vim: make shiftwidth depend on tabstop 2020-12-15 17:44:33 +01:00
6d568d963e vim: better horizontal & vertical scrolling 2020-12-15 17:43:46 +01:00
44488c44c2 vim: use case insensitive search (except when pattern has uppercase chars) 2020-12-15 17:40:29 +01:00
a63f71d5e4 vim: highlight only the line number of the cursor line 2020-12-15 17:37:37 +01:00
7bb1adc397 vim: make colorcolumn depend on textwidth 2020-12-15 17:36:31 +01:00
857db5e1db vim: fix foldmethod for vimrc 2020-12-15 17:35:32 +01:00
36582437f4 vim: minor vimrc formatting change 2020-12-15 17:21:48 +01:00
3a168c72a0 vim: document used options 2020-12-15 17:14:19 +01:00
9df34c8219 readline: add description of options 2020-12-14 00:01:03 +01:00
2dbcdc9b24 bash: add default bash-completion path for homebrew 2020-12-13 13:46:33 +01:00
ea56dc5af4 bash: show user and host in prompt only when relevant
user: when operating as root
host: when connected via ssh
2020-12-13 13:46:10 +01:00
45bac0500b tmux: minor tweak to status line 2020-12-13 02:17:24 +01:00
6af4eb3192 bash: replace ls with exa when available 2020-12-13 02:02:25 +01:00
a520c635b6 vim: update vim-plug (running :PlugUpgrade) 2020-12-13 01:28:58 +01:00
71f9710d82 tmux: more status line tweaking 2020-12-13 00:54:39 +01:00
f52ebc6672 vim: move local config to ~/.local/etc/vim/vimrc 2020-12-12 22:47:23 +01:00
e601612535 feat(tmux): improve status line with more info & colors 2020-12-11 18:03:22 +01:00
2409726b84 feat(bash): add short aliases for vim and git 2020-12-11 13:57:16 +01:00
ecad0a8d62 refactor(bash): clean up alias definitions 2020-12-11 12:18:07 +01:00
003f6c2a14 fix(bash): remove superfluous double quotes for local profile 2020-12-08 14:14:52 +01:00
23c7a7a616 feat(bash): use bash-completion package
This package will pick up completions installed by other packages and
will source any local completions from:

    ~/.local/share/bash-completion/completions
2020-12-08 13:32:01 +01:00
ce16bca279 feat(git): store local configs under ~/.local/etc/git 2020-12-08 12:21:33 +01:00
cda8ae2ab6 feat(bash): source local config from ~/.local/etc/bash/profile 2020-12-08 11:55:25 +01:00
37f5dcb035 feat(bash): set iTerm2 cursor shape to underline 2020-12-08 01:37:52 +01:00
4741aba4e8 refactor(bash): change method for setting iTerm2 color palette
According to iTerm2's documentation, the previous scheme of
^[]Pnrrggbb^[\ is supported but not recommended.
2020-12-08 01:36:52 +01:00
f154046c0a refactor(bash): avoid messing with syntax highlighting
The backslash character in _osc_end was throwing off syntax highlighting
in vim, so I just use the hex code for \ (0x5c) instead.
2020-12-08 01:34:58 +01:00
426f6b7132 feat(packages): add more commonly used packages 2020-12-08 01:06:54 +01:00
6686b3b1c0 fix(bash): remove vim swap file added by mistake 2020-12-08 00:37:37 +01:00
2481b15896 feat(bash): upgrade bash to latest version with ansible 2020-12-08 00:33:43 +01:00
2c3b574467 feat(bash): disable Homebrew auto update and analytics 2020-12-05 22:24:12 +01:00
6b4f2ecf85 fix(tmux): changing background was ignored by tmux
When moving the configuration files to $XDG_CONFIG_HOME I forgot to
change the line in .bashrc that sources the tmux configuration so bash
was still trying to source ~/.tmux.conf, which no longer exists.

This commit fixes that. Additionally, the color setting code has been
factored out of tmux.conf into tmux-colors.conf (which can be sourced
from bash profile and tmux.conf). This way the rest of the code in
tmux.conf doesn't have to be executed again when changing the background
color.
2020-12-04 18:15:41 +01:00
46936dffa9 refactor(bash): improve handling of terminal colors
This commit cleans up the code a bit and uses rgb:/RR/GG/BB over the not
recommended #RRGGBB format to specify color values.
2020-12-04 14:31:24 +01:00
f2311bddc1 style(bash): describe common terminal control sequences 2020-12-04 13:28:48 +01:00
51e1d65153 [bash] disable shellcheck warning for bash completion files
There is no need to run shellcheck for each completion file when
checking the bash profile.
2020-12-03 18:34:27 +01:00
6c7b29705e [bash] improve PATH manipulation
The previous implementation failed to prevent duplicates if the entry
being added was the only entry already present in the path. The reason
is that it always required a : to be present in order to remove the new
entry before adding it.

The new implementation is clearer and solves that. However, if the new
entry is already present it will be kept where it was, not moved to the
front of the list. This is fine at the moment.
2020-12-03 18:34:23 +01:00
eef6e7d58f [bash] fix shellcheck error SC2166
For details, see:

    https://github.com/koalaman/shellcheck/wiki/SC2166
2020-12-03 18:34:17 +01:00