This commit is contained in:
pika 2025-05-25 22:41:22 +02:00
parent 41c9126080
commit bd9ad013a4
2 changed files with 28 additions and 7 deletions

View file

@ -1,10 +1,23 @@
# Define color variables # Basic Colors
RED='\033[0;31m' BLACK=$'\e[30m'
YELLOW='\033[0;33m' RED=$'\e[31m'
CYAN='\033[0;36m' GREEN=$'\e[32m'
GREEN='\033[1;32m' YELLOW=$'\e[33m'
NC='\033[0m' # No Color BLUE=$'\e[34m'
BOLD='\033[1m' MAGENTA=$'\e[35m'
CYAN=$'\e[36m'
WHITE=$'\e[37m'
# Styles
BOLD=$'\e[1m'
ITALIC=$'\e[3m'
UNDERLINE=$'\e[4m'
BLINK=$'\e[5m' # May not work in all terminals
INVERT=$'\e[7m' # Invert foreground/background
STRIKE=$'\e[9m' # Strikethrough
# Reset
NC=$'\e[0m' # Reset all styles/colors
# Functions to store messages # Functions to store messages
echo_error() { echo_error() {
@ -26,6 +39,8 @@ echo_info() {
alias sudo="sudo -E" alias sudo="sudo -E"
alias please="sudo" alias please="sudo"
alias whoami="command echo 'Ghost in a shell..'"
# ─< easier dir up >──────────────────────────────────────────────────────────────────────── # ─< easier dir up >────────────────────────────────────────────────────────────────────────
alias ..="cd .." alias ..="cd .."

View file

@ -1,4 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
[[ $- == *i* ]] && source /usr/share/blesh/ble.sh --noattach
# Enable history expansion (!!, !$, etc.) in ble.sh
bleopt history_expand_on_space=1
# Make Tab expand history references (!!, !$, etc.)
ble-bind -f 'TAB' 'complete/expand-history'
# ─< Helper functions >───────────────────────────────────────────────────────────────── # ─< Helper functions >─────────────────────────────────────────────────────────────────
# ───────────────────────────────────< Message storage >───────────────────────────────── # ───────────────────────────────────< Message storage >─────────────────────────────────
declare -A _MESSAGES declare -A _MESSAGES
@ -304,3 +309,4 @@ main() {
} }
main main
[[ ! ${BLE_VERSION-} ]] || ble-attach