From 554ebf541ee27db60a8513f08ce3fa777b350fb0 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 27 Sep 2020 20:49:28 -0400 Subject: [PATCH] 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 --- .bashrc | 2 +- .console_theme | 25 ------------------------- etc/console_theme.sh | 25 +++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 .console_theme create mode 100644 etc/console_theme.sh diff --git a/.bashrc b/.bashrc index 3a61869..20e975d 100644 --- 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 deleted file mode 100644 index 2b1a3f2..0000000 --- a/.console_theme +++ /dev/null @@ -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 new file mode 100644 index 0000000..e9e90e3 --- /dev/null +++ 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 -- libgit2 0.28.4