Commit graph

374 commits

Author SHA1 Message Date
0647d72858 Sync bash with master branch 2020-03-04 19:07:50 +01:00
4a55214ef4 Sync vim with ansible branch 2020-03-04 18:45:21 +01:00
6d52828759 Sync bash with ansible branch 2020-03-04 18:31:15 +01:00
c1294813d8 Update playground ssh configuration 2020-03-04 17:29:19 +01:00
6330dce222 Make sure $XDG_CACHE_HOME/bash exists
`bash` will not save history if this directory doesn't exist - it will
create the file but not the directories in the path.

Just to be safe, we do the same for `less`.
2020-03-04 12:56:45 +01:00
2e4bb9e376 Use default value for IdentityFile
As I am creating new keys with the ed25519 type, the constraint was
inconvenient. I now let SSH use the default, which will use either RSA
od ED25519, whatever is available.
2020-03-04 12:38:20 +01:00
c6305ae9ad Change local vimrc to $XDG_CONFIG_HOME/vim/vimrc.local 2020-03-04 12:04:15 +01:00
ad6e137d04 Use correct syntx highlighting for Vagrantfile (ruby) 2020-03-04 12:03:40 +01:00
409b519dc0 Fix JSON syntax coloring for number, boolean, null
See the following comment for why this way broken:

    https://github.com/elzr/vim-json/issues/37#issuecomment-500044818
2020-03-04 11:42:30 +01:00
1febfc980f Remove rcrc syntax highlighting from vim
No longer using rcm (https://github.com/thoughtbot/rcm) to manage my
dotfiles.
2020-03-04 11:42:30 +01:00
e8c1452562 Organize vim plugin configurations 2020-03-04 11:42:30 +01:00
1c5f02eb8f Make numbers and booleans stand out in vim 2020-03-04 11:42:30 +01:00
6e73dbea71 Change vim mapping for cycling line number style
<leader>r is used by plugins to run code, so better free it up.
2020-03-04 11:42:23 +01:00
b437ad60bf Improve vim window navigation
I use windows much more than tabs, so it makes sense to make window
navigation more convenient.
2020-03-04 11:42:23 +01:00
ca73637add Auto reload vimrc on save 2020-03-04 11:42:22 +01:00
fc5db841e3 Clean up globals() for python interactive sessions
Previously the global namespace of all interactive python session were
polluted with all the stuff we did in this initialization script. For
example, globals()['__doc__'] would show the docstring from this file.

While none of this was ciritical, it could be confusing sometimes. So
this commit fixes that.
2020-02-26 16:49:01 +01:00
c0b024974a Fix PATH manipulation bug in bash profile
This bug caused entries to not be removed if they were already present
in the beginning of the list before being prepended. This could lead to
duplication of entires, usually this ended up being /usr/local/bin.
2020-02-21 11:03:59 +01:00
77cd259e28 Change polaris ssh ports
Since the old ports I was using are now no longer accessible from work,
I had to change to the following:

    - 143/imap for SSH logins and tunneling
    - 587/smtp for access to git repos over SSH

Hopefully these ports will stay open because they are common services.
2020-02-19 12:05:32 +01:00
7b4ed26e21 Fix mapping conflict in vimrc for <leader>r
Now <leader>r only cylces through types of line numbering.
2020-01-30 19:31:35 +01:00
ea74eca230 Remove kj binding to exit Insert mode in vim
The timeout every time I ended a word with k was annoying me. So there
aren't really any words that end in j and one mapping for this is
enough.
2020-01-30 19:23:20 +01:00
773c2142b2 Use default behavior for CtrlP working directory
The default value is:
  let g:ctrlp_working_path_mode = 'ra'

which means:
  a - like "c", but only applies when the current working directory outside of
      CtrlP isn't a direct ancestor of the directory of the current file.
  r - the nearest ancestor that contains one of these directories or files:
      .git .hg .svn .bzr _darcs

So this makes it more convenient to work within repositories, which is
what I mostly do anyway.
2020-01-30 19:20:58 +01:00
e0fb9191e5 Emulate AltGr via Ctrl + Alt in mintty 2020-01-30 19:17:54 +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
d87f7f0d47 Remove unused variables 2019-11-15 22:01:50 +00:00
5cb75685e2 Add ssh role 2019-11-15 22:00:56 +00:00
6f0f102a6c Remove unused file 2019-11-15 21:40:34 +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