Commit graph

528 commits

Author SHA1 Message Date
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
93cea206a6 [bash] disable shellcheck warnings on macOS PATH fix
SC2123 warns that the PATH variable is being manipulated, but this is
exactly the intention here.

SC1091 warns that /etc/profile cannot be checked. This is fine, as this
file is provided by the platform and there is no need to check it here.
2020-12-03 18:34:05 +01:00
2a19e95ae5 [bash] disable shellcheck warning on VIMINIT
shellcheck(1) is warning that the single quotes prevent the expression
from being expanded. However, this is the desired behavior because this
expression is meant to be interpreted by vim(1), not bash(1).
2020-12-03 18:33:58 +01:00
2a1a30dd9e [bash] fix shellcheck error SC2155
This makes sure the return code of extracting the path from manpath(1)
is not ignored. Also, unset the MANPATH environment variable instead of
just assigning an empty string to it, so that manpath(1) determines a
suitable default hierarchy to search for manual pages.
2020-12-03 18:33:52 +01:00
cf0a08baaf [bash] fix shellcheck error SC1073
The way I was doing the test is incorrect, as [ is the test(1) program
and the shell builtin command is not something it understands. Instead,
I now just let the shell execute `command` and then set the variable if
`brew` is available.
2020-12-03 18:33:45 +01:00
220f9a7122 [bash] fix shellcheck error SC2148
For details, see:

    https://github.com/koalaman/shellcheck/wiki/SC2148
2020-12-03 18:33:32 +01:00
80b6aee1ed Add Bounrs staging server to SSH config 2020-08-18 17:28:19 +02:00
da4c3090a3 Add preliminary SSH config 2020-08-18 14:19:41 +00:00
aa74a7651b Fix typo in imagemagick package name 2020-06-30 12:10:50 +02:00
d60dd8a0ab Add back user to bash prompt 2020-03-05 11:14:16 +01:00
068bccca57 Update playground SSH alias
This requires the local key (fernandos@N17FERNANDOS3) to be added to
~/.ssh/authorized_keys but uses a more standard and straightforward way
to connect via SSH.

Also, we now connect via a host-only network. This makes us independent
from any port forwarding later.
2020-03-05 10:20:37 +01:00
ab107815a0 Prevent errors when installing vim plugins with ansible 2020-03-05 08:09:03 +00:00
bf313d7bcf Update README for deployment with ansible 2020-03-04 19:58:03 +01:00
48884d0a9a Rename host group to dotfiles 2020-03-04 19:42:04 +01:00
facf7f2926 Merge remote-tracking branch 'origin/ansible' 2020-03-04 19:30:48 +01:00