Commit graph

306 commits

Author SHA1 Message Date
95a32c15f9 Use current path for new tmux windows/panes 2019-02-28 00:27:59 +01:00
8d759d75dd improve tmux colors 2019-02-27 21:06:23 +01:00
820ae0ed40 add colortest and tweak foreground/background in light mode 2019-02-27 21:05:44 +01:00
d00e1d6787 organize color definitions 2019-02-27 20:02:52 +01:00
60cc636729 reuse RGB definitions in solarized function 2019-02-27 19:49:14 +01:00
55af22587e define symbolic names for RGB codes 2019-02-27 19:03:26 +01:00
3aa3547616 capitalize color names 2019-02-27 18:32:46 +01:00
080a8d2e2c simplify terminal color customization 2019-02-27 18:31:13 +01:00
48fd7fff4e update colors in tmux before the shell 2019-02-27 18:29:39 +01:00
f5f5d29c40 improve function to check solarized colors 2019-02-27 18:28:28 +01:00
6585f00059 remove the need to separate tmux config files 2019-02-27 02:44:04 +01:00
54f1df3e90 make tmux status line match background color 2019-02-27 02:40:22 +01:00
1c5e7c4e75 Add newline before bash prompt 2019-02-25 23:40:24 +01:00
8da84cdc64 Fix SHLVL in tmux 2019-02-25 23:38:12 +01:00
a13a965961 Fix PATH and MANPATH manipulation in .bashrc 2019-02-25 23:30:50 +01:00
33eac53475 Add bash aliases for tree
Same reasoning as the previous commit for `ls`.
2019-02-25 23:30:19 +01:00
2a6a32e92c Add bash aliases to force ls colored output
This is useful when piping the output of `ls` into `less` or another
pager. However, I added new aliases because making the default ones
force color would cause problems when piping into other commands or
directly to files, since the terminal escape characters would then
clobber the data.
2019-02-24 12:11:51 +01:00
e5e03369c1 Remove unused bash aliases 2019-02-24 11:48:31 +01:00
7966273d6d Make non-zero exit codes more visible 2019-02-19 10:32:11 +01:00
b8ee44b888 Increase number of possible completions without asking
The previous limit of 40 proved to be quite annoying, so I'm going back
to 200 for now.
2019-02-19 09:42:29 +01:00
46efe2b268 Put all dotfiles into one "stow package"
This makes installation a lot easier, as we just need to type:

    stow -v dotfiles

instead of installing multiple packages and risking to forget something.
2019-02-18 23:19:28 +01:00
817735b658 Use bash completions from /usr/etc/bash_completion.d
This way we just add new completion files to this directory instead of
having to add them one by one in .bashrc.
2019-02-18 23:03:43 +01:00
0a6ac8fca2 Avoid non-zero exit code at end of .bashrc
The previous syntax caused the last command to evaluate to a non-zero
exit code when .bashrc.local does not exist. This was annoying because
we show a non-zero exit code in the prompt, so the first prompt on every
bash session would show this exit code.
2019-02-18 23:01:01 +01:00
abfa79b015 Avoid issues with ctrl-s on the terminal
Disabling the terminal option for START/STOP is better because this
affects all programs. The previous fix only worked for readline.
2019-02-18 22:48:29 +01:00
756e14df81 Make list of paths more readable
Having each path on a separate line makes it easier to read them at a
glance.
2019-02-18 22:46:56 +01:00
b3c8d0e267 Remove unused DOTFILES environment variable 2019-02-18 22:45:15 +01:00
2fe5ef48cb Disable creation of .lesshst file 2019-02-18 22:44:20 +01:00
eb9f865f77 [bash] fix colors in tmux on MacOS
tmux seems to not like \e as an escape character, but \033 works fine.
Changed everywhere for consistency.
2019-02-17 02:54:48 +01:00
2a9e1c1f43 [bash] erase history duplicates 2019-02-17 02:54:31 +01:00
d9445fc08d [bash] use readline in vi mode 2019-02-17 02:01:19 +01:00
4d5b7cf2e3 [vim] use 'kj' to exit insert mode 2019-02-17 02:00:26 +01:00
0cb5ea41ac [vim] show hidden files in ctrlp 2019-02-17 00:38:09 +01:00
861212dcc8 [bash] move dircolors into .config directory
This makes the home directory a little less cluttered and respects XDG.
2019-02-16 23:31:45 +01:00
c015e4ba54 [bash] add git status to prompt 2019-02-16 03:07:18 +01:00
5c11d640af [bash] show last exit code in prompt if non-zero 2019-02-16 02:27:40 +01:00
2fcb65b88b [git] add alias for log with author 2019-02-16 01:42:14 +01:00
62c7b29714 Use stow instead of rcm for deployment 2019-02-16 01:35:04 +01:00
17f427e6ec [bash] fix history and make it unlimited 2019-02-15 23:53:30 +01:00
ac3985f5b4 [bash] fix prompt for nested shells
We need to determine and correct the level before we build the prompt.
2019-02-15 23:53:27 +01:00
98b7c1532d [bash] fix man page colors on cygwin 2019-02-15 23:53:26 +01:00
7ed625cebd [bash] colorize man pages 2019-02-15 23:53:24 +01:00
78e76c2390 [bash] fix light/dark background switch 2019-02-15 23:53:22 +01:00
7e21f88f9f [bash] refactor .bashrc (no change in functionality) 2019-02-15 23:53:20 +01:00
40310d17da [bash] execute entire .bashrc only for interactive shells 2019-02-15 23:53:06 +01:00
c732921dfb [vim] check if vim has viminfofile before setting
The viminfofile is not always compiled into the available vim, leading
to an error when trying to set it.
2018-09-10 22:50:14 +02:00
1deacf25b4 [bash] only apply tmux PATH fix on the Mac
The workaround that works for the Mac breaks the PATH on Linux, so run
it only on the Mac.
2018-09-10 22:49:40 +02:00
e7e284baea [README] fix another setup.sh reference 2018-04-15 18:09:52 +00:00
39c522ad5d [README] mention bootstrap instead of setup.sh 2018-04-15 18:08:48 +00:00
4d8fc0e810 [tmux] shells under tmux start with SHLVL 1
This is necessary to make the visibility of nested shells (introduced in
30c5b52) work correctly when running inside tmux.
2018-04-15 20:03:29 +02:00
e449444252 [bash] make nested shells visible on prompt
The $ or # now gets repeated as many times as levels of shell nesting we
have.
2018-04-15 20:03:11 +02:00