diff --git a/.zprofile b/.zprofile index 8d23a4d..f57aed0 100644 --- a/.zprofile +++ b/.zprofile @@ -1,2 +1,5 @@ +# Defined base environment variables for the zsh shell terminal. + +# Default export EDITOR="nvim" export ZDOTDIR="$HOME/.config/zsh" diff --git a/config/aliasrc b/config/aliasrc index e2bbf7c..1ee4e24 100644 --- a/config/aliasrc +++ b/config/aliasrc @@ -1,5 +1,6 @@ -# Aliases definition +# Defined base aliases for the zsh shell terminal. +# Hosts alias rpi0="ssh mdsanima@192.168.1.27" alias rpi1="ssh mdsanima@192.168.1.32" alias rpi2="ssh mdsanima@192.168.1.34" @@ -8,12 +9,14 @@ alias rpi4="ssh mdsanima@192.168.1.33" alias rpi5="ssh mdsanima@192.168.1.37" alias rpi6="ssh mdsanima@192.168.1.35" alias rpi7="ssh mdsanima@192.168.1.36" -alias rpi8="ssh mdsanima@192.168.1.111" +alias rpi8="ssh mdsanima@192.168.1.11" alias jet1="ssh mdsanima@192.168.1.24" alias jet2="ssh mdsanima@192.168.1.30" alias macb="ssh mdsanima@192.168.1.44" +# Kubernetes alias k="kubectl" +# Editor alias vi="nvim" alias vim="nvim" diff --git a/lib/mdsanima-shell/libcolor.sh b/lib/mdsanima-shell/libcolor.sh index e5b04ca..a16e441 100644 --- a/lib/mdsanima-shell/libcolor.sh +++ b/lib/mdsanima-shell/libcolor.sh @@ -1,11 +1,9 @@ # Copyright (c) 2024 MDSANIMA DEV. All rights reserved. # Licensed under the MIT license. -# Library for color palette definition. +# Library for color palette definition. This is still work in progress. -#------------------------------------------------------------------------------- # Global main default color names -#------------------------------------------------------------------------------- readonly WHITE=15 readonly BLACK=16 readonly LIGHT=252 @@ -41,9 +39,7 @@ readonly NEUTRAL=240 readonly BASIC=242 readonly STONE=244 -#------------------------------------------------------------------------------- # Global base integer color names -#------------------------------------------------------------------------------- readonly INT_WHITE=${WHITE} readonly INT_BLACK=${BLACK} readonly INT_LIGHT=${LIGHT} @@ -79,9 +75,7 @@ readonly INT_NEUTRAL=${NEUTRAL} readonly INT_BASIC=${BASIC} readonly INT_STONE=${STONE} -#------------------------------------------------------------------------------- # Global base hexadecimal color names -#------------------------------------------------------------------------------- readonly HEX_WHITE="#ffffff" readonly HEX_BLACK="#000000" readonly HEX_LIGHT="#cad1d9" diff --git a/lib/mdsanima-shell/libconvert.sh b/lib/mdsanima-shell/libconvert.sh index a04caa1..e2d3908 100644 --- a/lib/mdsanima-shell/libconvert.sh +++ b/lib/mdsanima-shell/libconvert.sh @@ -1,11 +1,11 @@ # Copyright (c) 2024 MDSANIMA DEV. All rights reserved. # Licensed under the MIT license. -# Library for converting functions. +# Library for converting functions. This is still work in progress. -#------------------------------------------------------------------------------- -# This function converting HEX color code to RGB values. The returned values are -# separated by semicolon and will be used in another function. +# -------------------------------------------------------------------------------------------------- +# This function is for converting HEX color code to RGB values. The returned values are separated +# by semicolon and will be used in another function. # # Arguments: # The hexadecimal color code string, required @@ -13,7 +13,7 @@ # Usage: # convert::hex_to_rgb # convert::hex_to_rgb "#ff0000" -#------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------------- function convert::hex_to_rgb() { local hex_color="$1" local awk_cmd='{print strtonum("0x" $0)}' diff --git a/lib/mdsanima-shell/libevent.sh b/lib/mdsanima-shell/libevent.sh index 0fa3e48..601c072 100644 --- a/lib/mdsanima-shell/libevent.sh +++ b/lib/mdsanima-shell/libevent.sh @@ -1,7 +1,7 @@ # Copyright (c) 2024 MDSANIMA DEV. All rights reserved. # Licensed under the MIT license. -# Library for event logging functions. +# Library for event logging functions. This is still work in progress. function event::debug() { print::color -fg ${BLACK} -bg ${GRAY} -b " DEBUG " diff --git a/lib/mdsanima-shell/libprint.sh b/lib/mdsanima-shell/libprint.sh index dcfc107..6d804e1 100644 --- a/lib/mdsanima-shell/libprint.sh +++ b/lib/mdsanima-shell/libprint.sh @@ -1,11 +1,11 @@ # Copyright (c) 2024 MDSANIMA DEV. All rights reserved. # Licensed under the MIT license. -# Library for printing functions. +# Library for printing functions. This is still work in progress. -#------------------------------------------------------------------------------- -# This function provides a simple way to print text with colors on the terminal -# bash script outputs. The color mode may be number, name or HEX code. +#--------------------------------------------------------------------------------------------------- +# This function provides a simple way to print the text with colors on the terminal bash script +# outputs. The color mode may be number, name or HEX code. # # Arguments: # -fg Foreground color mode, optional, default to none @@ -22,7 +22,7 @@ # print::color -fg ${BLACK} -bg ${INT_RED} "Black text on red background" # print::color -fg ${HEX_YELLOW} -i "Italic yellow text" # print::color -fg "#f97316" -b "Bold orange text" -#------------------------------------------------------------------------------- +#--------------------------------------------------------------------------------------------------- function print::color() { local fg_color local bg_color diff --git a/lib/mdsanima-shell/libutil.sh b/lib/mdsanima-shell/libutil.sh index 0112156..e3e10ff 100644 --- a/lib/mdsanima-shell/libutil.sh +++ b/lib/mdsanima-shell/libutil.sh @@ -1,7 +1,7 @@ # Copyright (c) 2024 MDSANIMA DEV. All rights reserved. # Licensed under the MIT license. -# Library for utility functions. +# Library for utility functions. This is still work in progress. readonly clean_line_seq="\r\e[0K"