Commit graph

46 commits

Author SHA1 Message Date
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
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
20efb65a16 Sync ssh with master branch 2020-03-04 19:08:55 +01:00
9455d8d285 Sync vim with master branch 2020-03-04 19:08:40 +01:00
661576726d Sync python with master branch 2020-03-04 19:08:26 +01:00
6590626a7a Sync mintty with master branch 2020-03-04 19:08:09 +01:00
0647d72858 Sync bash with master branch 2020-03-04 19:07:50 +01:00
7d961dd352 Remove optional --- from YAML files 2019-11-16 12:32:43 +00:00
073790d6cf Add Mac apps via homebrew cask 2019-11-16 12:27:32 +00:00
41f5acd61b Use blocks to organize package installations 2019-11-16 12:18:32 +00:00
b9fb127fdf Add more frequently used packages 2019-11-16 12:12:34 +00:00
2ac9cc5a74 Use SSH default IdentityFile
As I am in the process of migrating my key to the more secure ED25519,
this setting was annoying for hosts that don't have RSA keys. Besides,
I am using the defaults anyway, so we can just get rid of this
configuration altogether.
2019-11-16 11:59:36 +00:00
55eb2a6a55 Add template for host-specific git configuration 2019-11-16 11:56:45 +00:00
7e59326d1c Prevent bash warning when no completions are installed 2019-11-16 09:32:29 +00:00
7c3b26b8e2 Add htop installation 2019-11-16 00:35:44 +00:00
ae0b15936e Add pip installation for Debian 2019-11-16 00:02:37 +00:00
929102158b Add gpg installation 2019-11-15 23:45:53 +00:00
81c63724d7 Add installation for commonly used sotfware 2019-11-15 23:44:15 +00:00
96ca7d370f Create a directory for bash completion helpers 2019-11-15 22:13:57 +00:00
1a3b9973c4 Remove $HOME/bin from PATH (use only $HOME/.local/bin) 2019-11-15 22:10:53 +00:00
9758287c0a Fix bash path manipulation 2019-11-15 22:05:26 +00:00
ed4485c83d Remove executable flag from non-executable files 2019-11-15 22:03:14 +00:00
5cb75685e2 Add ssh role 2019-11-15 22:00:56 +00:00
ed40dfba54 Skip hushlogin creation if it already exists 2019-11-15 21:35:19 +00:00
4c7c0d9e40 Add role for custom commands 2019-11-15 21:29:38 +00:00
e9133534c4 Add git role 2019-11-15 20:02:19 +00:00
e279c9b5d1 Add tmux role 2019-11-15 19:58:27 +00:00
0a1820a075 Remove file committed by mistake 2019-11-15 19:54:27 +00:00
4fc05d12bd Add hushlogin role 2019-11-15 19:53:47 +00:00
b2404d7266 Add python role 2019-11-15 19:49:23 +00:00
ffef99af11 Add mintty role 2019-11-15 19:43:52 +00:00
4c0bfbb30a Add dircolors role 2019-11-15 19:39:06 +00:00
6081b7b9ea Add readline role 2019-11-15 19:30:02 +00:00
dad459852c Simplify vim role
It might make sense to make the XDG_* stuff configurable in the future,
but let's keep it simple for now.
2019-11-15 19:19:12 +00:00
ff1562506d Add vim role 2019-11-15 19:08:53 +00:00
5be5f80179 Add bash role 2019-11-15 17:11:24 +00:00