dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 554ebf541ee27db60a8513f08ce3fa777b350fb0 (patch)
parent d6845babbcc57f89fd6a17544ffa2060ff3a6141
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun, 27 Sep 2020 20:49:28 -0400

bash: Move console_theme to ~/etc

Now that our worktree is $HOME, we don't need to have this file under
$HOME/.console_theme -- we can predictably find it under ~/etc

Diffstat:
M.bashrc | 2+-
D.console_theme | 25-------------------------
Aetc/console_theme.sh | 25+++++++++++++++++++++++++
3 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -19,7 +19,7 @@ PROMPT_COMMAND="history -a" # Record history after each command include() { [ -r "$1" ] && source "$1"; } include "$HOME/.shrc" # Common shell configuration include "$HOME/.bash/git-completion.bash" # Git Completion -include "$HOME/.console_theme" # Virtual Console colors (if TERM == "linux") +include "$HOME/etc/console_theme.sh" # Virtual Console colors (if TERM == "linux") include "$HOME/.bashrc.local" # System specific settings if [ -n "$USE_FANCY_PROMPT" ]; then diff --git a/.console_theme b/.console_theme @@ -1,25 +0,0 @@ -#!/usr/bin/env bash -# bash/console_theme -# A small script to set the Virtual Console to use Gruvbox colors. -# Colors originally from https://github.com/morhetz/gruvbox by Pavel Pertsev -# For more on escape sequences see console_codes(4) -if [[ "$TERM" =~ "linux" ]]; then - # Gruvbox 16 colors - printf "\033]P0282828" # 0: Black - printf "\033]P1cc241d" # 1: Red - printf "\033]P298971a" # 2: Green - printf "\033]P3d79921" # 3: Yellow - printf "\033]P4458588" # 4: Blue - printf "\033]P5b16286" # 5: Magenta - printf "\033]P6689d6a" # 6: Cyan - printf "\033]P7a89984" # 7: White - printf "\033]P8928374" # 8: Bright Black - printf "\033]P9fb4934" # 9: Bright Red - printf "\033]Pab8bb26" # 10: Bright Green - printf "\033]Pbfabd2f" # 11: Bright Yellow - printf "\033]Pc83a598" # 12: Bright Blue - printf "\033]Pdd3869b" # 13: Bright Magenta - printf "\033]Pe8ec07c" # 14: Bright Cyan - printf "\033]Pfebdbb2" # 15: Bright White - clear # Redraw the screen... -fi diff --git a/etc/console_theme.sh b/etc/console_theme.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# console_theme.sh +# A small script to set the Virtual Console to use Gruvbox colors. +# Colors originally from https://github.com/morhetz/gruvbox by Pavel Pertsev +# For more on escape sequences see console_codes(4) +if [[ "$TERM" =~ "linux" ]]; then + # Gruvbox 16 colors + printf "\033]P0282828" # 0: Black + printf "\033]P1cc241d" # 1: Red + printf "\033]P298971a" # 2: Green + printf "\033]P3d79921" # 3: Yellow + printf "\033]P4458588" # 4: Blue + printf "\033]P5b16286" # 5: Magenta + printf "\033]P6689d6a" # 6: Cyan + printf "\033]P7a89984" # 7: White + printf "\033]P8928374" # 8: Bright Black + printf "\033]P9fb4934" # 9: Bright Red + printf "\033]Pab8bb26" # 10: Bright Green + printf "\033]Pbfabd2f" # 11: Bright Yellow + printf "\033]Pc83a598" # 12: Bright Blue + printf "\033]Pdd3869b" # 13: Bright Magenta + printf "\033]Pe8ec07c" # 14: Bright Cyan + printf "\033]Pfebdbb2" # 15: Bright White + clear # Redraw the screen... +fi