Commit graph

15 commits

Author SHA1 Message Date
9b3bc72eaf bash: factor out profile and aliases
This is a preparation to start experimenting with zsh. The idea is to
share the aliases and environment setup between both shells to avoid
having a bunch of duplication. Even if I decide to stick with zsh it
would be nice to keep the bash configs around for systems where I might
not want to install zsh for some reason. We'll see how this goes...
2021-08-07 01:33:26 +02:00
5d10202121 Remove support for light background
I never seemed to used and the complexity added by this was a bit
annoying.
2021-07-27 23:28:48 +02:00
a9ee9983b3 bash: remove unused shell aliases and functions 2021-07-22 17:34:09 +02:00
e44b318e61 bash: turn aliases into scripts
This makes the common actions previously encoded as bash aliases
independent of the shell (I'm using /bin/sh for the scripts), which will
make a potential switch to zsh easier by having less bash-specific stuff
around.
2021-07-22 17:34:00 +02:00
d1379ae956 bin: rename solarize -> ,solarize 2021-07-22 16:43:36 +02:00
02ca961623 bin: rename colorman -> ,man 2021-07-22 16:20:37 +02:00
e988871cba bash: only export MANPATH if manpath(1) is available 2021-07-07 01:18:07 +02:00
9c4c579938 bash: improve operating system detection
The -s flag to `uname` makes sure that only the string "Darwin" is
printed, so the comparison is safer.
2021-02-25 19:41:34 +01:00
e5f4c25593 bash: shorten PATH manipulation 2021-02-25 19:39:59 +01:00
8fb66ffa6c bash: render prompt in the same color as separators 2021-02-23 17:27:53 +01:00
f1ba6be31c bash: exa: only ignore .git directory when showing tree 2021-02-23 17:26:31 +01:00
4e29ff39e7 bash: fix LS_COLORS
The solarize script evalss the output of the dircolors(1) but the
LS_COLORS variable gets exported in its environmnent, not the calling
shell where we actually need it so ls(1) and other programs wiill
inherit it.

Therefore, the evaluation of the dircolors(1) output is moved to the
change_bg() function in the shell, so that the LS_COLORS variable is
available to any children of the shell.

The reason why I had missed this is that in most systems I have ls
aliased to exa, which does not care about LS_COLORS and has its own
coloring system. On cygwin, however, exa is not available and I noticed
that the colors were missind; and indeed, on systems with exa the colors
are also missing if I run ls as \ls.
2021-01-05 18:02:40 +01:00
3ad4f7d72b vim: replace vim with neovim 2021-01-03 23:37:13 +01:00
c141e51b66 bash: check for brew after PATH manipulation 2021-01-03 22:19:52 +01:00
b16ca6a626 replace ansible with bootstrap script 2021-01-03 17:24:48 +01:00
Renamed from roles/dotfiles/files/bashrc (Browse further)