From 285df689969700a5ab1d9b812d5cc433c8023b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 15 May 2020 20:01:45 +0200 Subject: [PATCH] nwinkler_random_colors: Allow to provide a customized color file When running bash inside a container where we share the home with the host, or when whe share the same dotfiles betwee different machines, it may be useful to be able to customize the random-colors files. So allow to override it via $NWLINKLER_RANDOM_COLOR_FILE env variable --- themes/nwinkler_random_colors/nwinkler_random_colors.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/nwinkler_random_colors/nwinkler_random_colors.theme.bash b/themes/nwinkler_random_colors/nwinkler_random_colors.theme.bash index f6eff908..f68beb0f 100644 --- a/themes/nwinkler_random_colors/nwinkler_random_colors.theme.bash +++ b/themes/nwinkler_random_colors/nwinkler_random_colors.theme.bash @@ -15,7 +15,7 @@ # The exit code functionality currently doesn't work if you are using the 'fasd' plugin, # since 'fasd' is messing with the $PROMPT_COMMAND -RANDOM_COLOR_FILE=$HOME/.nwinkler_random_colors +RANDOM_COLOR_FILE=${NWLINKLER_RANDOM_COLOR_FILE:-$HOME/.nwinkler_random_colors} function randomize_nwinkler { declare -a AVAILABLE_COLORS