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
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
f65c4858ab
Add support for per-user bash completion files
2019-11-13 14:42:07 +01:00
4e9c8e8470
Ensure PATH directories are in correct order
...
Previously we only checked if the new directory was already in the PATH
and, if yes, didn't prepend it. This can cause the new directory to be
in an unexpected position.
Now we first remove any occurrences of the new directory (to prevent
duplication) and prepend it so it's in the position we expect.
2019-11-11 13:04:25 +01:00
10ad8282e2
Fix glob for bash completions
2019-11-11 11:43:53 +01:00
b8c257ff9b
Shorten unnecessarily long parts
2019-11-11 11:37:11 +01:00
d5245eab46
Keep installation prefix in the environment
2019-11-11 11:20:24 +01:00
a49fe75566
Refactor bash PROMPT_COMMAND function
...
Two main changes:
- avoid 2 additional fork() calls by evaluating \j instead of using
$(jobs | wc -l) -> one fork for subshell and another for `wc`.
- make the build up of the prompt a bit more modular by using an
array to collect the pieces and "sort of" join them in the end.
2019-11-08 13:38:28 +01:00
a9e50f2ba8
Call __git_ps1 as function instead of command substitution
...
This results in a slightly faster prompt because it saves us one fork()
call for the subshell that now doesn't have to be instantiated.
2019-11-08 10:44:59 +01:00
7243dc02b3
Minor refactoring
...
Just renaming last_status to exit because the latter is a more common
term.
2019-11-08 10:33:17 +01:00
f178b0c3cf
Fix sourcing of local bash configuration
2019-11-08 10:03:22 +01:00
907eb892de
Improve bash prompt speed
...
Avoiding starting many processes during creation of the PS1 string makes
the shell much more responsive, especially under Cygwin, which has
problems with fork().
2019-11-08 09:22:42 +01:00
c5baba5f5f
Another useful alias for getting IP information
...
Also use -s flag in curl so we don't get progress bars.
2019-11-03 03:27:14 +01:00
d053c5c82c
bashrc aliases for better head & tail
2019-11-03 03:22:12 +01:00
5bbbfb0632
Replace ~/.python_history with $XDG_CACHE_HOME/python/history
2019-11-03 02:52:18 +01:00
a3c3bcf1d6
Add a python startup file for interactive sessions
...
This is a preparation to move the .python_history file into an XDG
directory -> $XDG_CACHE_HOME/python/history
2019-11-03 02:27:29 +01:00
f7a498dbb7
Use XDG Base Directory Specification
...
SSH is an exception because there seems to be no good way of supporting
XDG. Patience, I guess...
2019-11-03 01:53:27 +01:00
16cd08905e
Improve readability of if statements in bashrc
2019-11-01 01:58:53 +01:00
3a90bdad1f
Fixes based on shellcheck output
2019-11-01 01:53:14 +01:00