saving uncommitted changes in /etc prior to apt run

This commit is contained in:
2022-07-07 12:59:16 +02:00
committed by Gitea
parent 12debc1887
commit c9459e218f
22 changed files with 2282 additions and 50 deletions
+166
View File
@@ -0,0 +1,166 @@
##==============================================================================
## LOGO
##
## Configure the logo to your liking. You can either use the default or
## set your own ASCII art down below.
##
## - You can either add it as a single line, or multiline (terminated with \).
## - You have to escape backslashes if you want them to show inside your logo.
## Use \\\\ for 1 backslash, \\\\\\\\ for two. All other characters work fine.
## - You can also add individual color codes to the logo using '\e[ ··· m'.
## - For example: \e[1;31mHello World! prints in bright red.
## - If you want extra spaces between the logo and the status info, just add
## extra spaces at the last line and end it with '\n'.
##==============================================================================
logo="\e[38;5;213m __ __
_______ ______ / /_/ /_
/ ___/ / / / __ \/ __/ __ \
/__ / /_/ / / / / /_/ / / /
/____/\__ /_/ /_/\__/_/ /_/
/____/
\e[38;5;45m _____ __ __________ __
/ ___// / / / ____/ / / /
\__ \/ /_/ / __/ / / / /
___/ / __ / /___/ /___/ /___
/____/_/ /_/_____/_____/_____/\e[0;39m"
##==============================================================================
## STATUS INFO
##
## Choose what to print and in what order
## Valid options are:
##
## ## SIMPLE ONE-LINERS
## OS Linux distribution name
## KERNEL Kernel version
## CPU CPU Name
## SHELL Shell name
## DATE Current date
## UPTIME System uptime (time since boot)
## USER Current user and host names
## NUMLOGGED Show number of logged in users
## NAMELOGGED Show names of logged in users
## LOCALIPV4 IPv4
## EXTERNALIPV4 External IPv4 (might be slow)
## SERVICES Summary of failed services
## CPULOAD Sys load average(eg. 0.23, 0.26, 0.27 )
## CPUTEMP CPU temperature (requires lm-sensors)
##
## ## SYS LOAD MONITORS
## SYSLOAD_MON Current CPU load
## MEMORY_MON Occupied memory
## SWAP_MON Occupied SWAP
## HDDROOT_MON / partition occupied
## HDDHOME_MON /home/user occupied
## CPUTEMP_MON CPU temperature (requires lm-sensors)
## SYSLOAD_MON% Current CPU load in %
## MEMORY_MON% Occupied memory in %
## SWAP_MON% Occupied SWAP in %
## HDDROOT_MON% / partition occupied in %
## HDDHOME_MON% /home/user occupied in %
##
## ## MISC
## SPACER Print decorative spacer (empty line)
## PALETTE Show 16-bit palette (add SPACER before for best results)
## PALETTE_SMALL Show smaller version of 16-bit color palette
##
##==============================================================================
print_info="
OS
KERNEL
CPU
GPU
SHELL
DATE
UPTIME
LOCALIPV4
EXTERNALIPV4
SERVICES
CPUTEMP
SYSLOAD_MON%
MEMORY_MON
SWAP_MON
HDDROOT_MON
HDDHOME_MON
PALETTE"
##==============================================================================
## COLORS
##
## Control the color and format scheme of the status report.
## -c color: color name or 256bit color code
## -b background color: color name or 256bit color code
## -e effect: bold, blink, dim, underline...
##
## Valid color names (16 bit):
## white, light-gray, dark-gray, black,
## red, green, yellow, blue, magenta, cyan,
## light-red, light-green, light-yellow, light-blue, light-magenta, light-cyan
##
##==============================================================================
format_info=" -c light-gray "
format_highlight=" -c blue -e bold"
format_crit=" -c 45 -e bold"
format_deco=" -c light-gray "
format_ok=" -c blue -e bold"
format_error=" -c 45 -e bold -e blink"
format_logo=" -c blue -e bold"
##==============================================================================
## STATUS BARS
##
## These option controls the behaviour of the visual status bars that are
## plotted for CPU, Memory, Swap and HDD usage. You can set the percentage that
## determines when the current usage is deemed critical. If said percentage
## is surpassed, the color of the bars will change and extra information
## might be plotted in addition (e.g. if the CPU usage is too high, the most
## demanding processes are printed to terminal).
##==============================================================================
bar_cpu_crit_percent=40
bar_ram_crit_percent=75
bar_swap_crit_percent=25
bar_hdd_crit_percent=85
bar_home_crit_percent=85
bar_ram_units="MB"
bar_swap_units="MB"
bar_hdd_units="GB"
bar_home_units="GB"
cpu_crit_print=true
cpu_crit_print_num=3
ram_crit_print=true
ram_crit_print_num=3
bar_length=9 # Number of characters that comprise a bar
bar_num_digits=5 # Control num digits next to bar
bar_padding_after=0 # Extra spaces after bar
info_label_width=16 # Desired length of the info labels
bar_bracket_char_left='['
bar_bracket_char_right=']'
bar_fill_char='|'
bar_background_char=' '
##==============================================================================
## OTHERS
##
## For date format setup, see `man date`
##==============================================================================
print_cols_max=100 # Keep logo and info text together
print_logo_right=false # Change where the logo is plotted
date_format="%Y.%m.%d - %T" # see 'man date'
clear_before_print=false # Dangerous if true, some messages might be lost
print_extra_new_line_top=true # Extra line before logo and info
print_extra_new_line_bot=true # Extra line after logo and info
+88
View File
@@ -0,0 +1,88 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - PYENV: if inside a Python Virtual environment.
## - TF: if inside a Terraform Workspace.
## - CLOCK: shows current time in H:M format.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
format="USER HOST PWD GIT PYENV TF"
font_color_user="white"
background_user="blue"
texteffect_user="bold"
font_color_host="white"
background_host="light-blue"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="white"
texteffect_pwd="bold"
font_color_git="light-gray"
background_git="dark-gray"
texteffect_git="bold"
font_color_pyenv="white"
background_pyenv="blue"
texteffect_pyenv="bold"
font_color_tf="purple"
background_tf="light-purple"
texteffect_tf="bold"
font_color_clock="white"
background_clock="light-blue"
texteffect_clock="bold"
font_color_input="45"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
separator_padding_left='' #
separator_padding_right='' #
prompt_horizontal_padding='' #
prompt_final_padding='' #
segment_padding=' ' #
enable_vertical_padding=true # Add extra new line over prompt
max_pwd_char="20"
##==============================================================================
## GIT
##==============================================================================
git_symbol_synced=''
git_symbol_unpushed=' ▲'
git_symbol_unpulled=' ▼'
git_symbol_unpushedunpulled=' ◆'
git_symbol_dirty=' ◔'
git_symbol_dirty_unpushed=' ◔ △'
git_symbol_dirty_unpulled=' ◔ ▽'
git_symbol_dirty_unpushedunpulled=' ◔ ◇'
git_update_period_minutes=15 # Use -1 to disable automatic updates