From 2f8cbfc515bd04a27a87925c2e5bd11c720f1b29 Mon Sep 17 00:00:00 2001 From: jim kolpack Date: Sun, 18 Jan 2026 14:55:51 -0500 Subject: [PATCH] Add oh-my-bash, fastfetch, and eza configurations - Updated bash/.bashrc with oh-my-bash framework - Theme: agnoster - Plugins: git, bashmarks - Completions: git, composer, ssh - Added fastfetch configuration (replaces neofetch) - Created fastfetch/.config/fastfetch/config.jsonc - Clean modern layout with cyan-colored keys - Displays system info, hardware, and color palette - Replaced exa with eza (maintained fork) - Added alias: ls='eza -l --color=always --group-directories-first' - Included color support for grep commands - Added convenience aliases: ll, la, l - Updated setup.sh to include fastfetch in stow packages - Configured bashrc to run fastfetch on terminal startup - Added ~/.local/bin to PATH for custom binaries --- bash/.bashrc | 18 +++ fastfetch/.config/fastfetch/config.jsonc | 141 +++++++++++++++++++++++ setup.sh | 2 +- 3 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 fastfetch/.config/fastfetch/config.jsonc diff --git a/bash/.bashrc b/bash/.bashrc index e4c42e4..f43718f 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -156,3 +156,21 @@ source "$OSH"/oh-my-bash.sh # alias bashconfig="mate ~/.bashrc" # alias ohmybash="mate ~/.oh-my-bash" export PATH="$HOME/.local/bin:$PATH" + +# Enable color support for various commands +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + # Use eza (modern ls replacement) with colors and directory grouping + alias ls='eza -l --color=always --group-directories-first' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# Additional ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' + +# Run fastfetch on terminal startup +fastfetch diff --git a/fastfetch/.config/fastfetch/config.jsonc b/fastfetch/.config/fastfetch/config.jsonc new file mode 100644 index 0000000..fe0e30d --- /dev/null +++ b/fastfetch/.config/fastfetch/config.jsonc @@ -0,0 +1,141 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "auto", + "padding": { + "top": 1, + "right": 3 + } + }, + "display": { + "separator": " → ", + "color": "green" + }, + "modules": [ + { + "type": "title", + "format": "{user-name}@{host-name}" + }, + { + "type": "separator" + }, + { + "type": "os", + "key": "OS", + "keyColor": "cyan" + }, + { + "type": "host", + "key": "Host", + "keyColor": "cyan" + }, + { + "type": "kernel", + "key": "Kernel", + "keyColor": "cyan" + }, + { + "type": "uptime", + "key": "Uptime", + "keyColor": "cyan" + }, + { + "type": "packages", + "key": "Packages", + "keyColor": "cyan" + }, + { + "type": "shell", + "key": "Shell", + "keyColor": "cyan" + }, + { + "type": "display", + "key": "Display", + "keyColor": "cyan" + }, + { + "type": "de", + "key": "DE", + "keyColor": "cyan" + }, + { + "type": "wm", + "key": "WM", + "keyColor": "cyan" + }, + { + "type": "wmtheme", + "key": "WM Theme", + "keyColor": "cyan" + }, + { + "type": "theme", + "key": "Theme", + "keyColor": "cyan" + }, + { + "type": "icons", + "key": "Icons", + "keyColor": "cyan" + }, + { + "type": "terminal", + "key": "Terminal", + "keyColor": "cyan" + }, + { + "type": "terminalfont", + "key": "Terminal Font", + "keyColor": "cyan" + }, + { + "type": "cpu", + "key": "CPU", + "keyColor": "cyan" + }, + { + "type": "gpu", + "key": "GPU", + "keyColor": "cyan" + }, + { + "type": "memory", + "key": "Memory", + "keyColor": "cyan" + }, + { + "type": "disk", + "key": "Disk (/)", + "keyColor": "cyan" + }, + { + "type": "localip", + "key": "Local IP", + "keyColor": "cyan", + "format": "{ipv4}" + }, + { + "type": "battery", + "key": "Battery", + "keyColor": "cyan" + }, + { + "type": "poweradapter", + "key": "Power", + "keyColor": "cyan" + }, + { + "type": "locale", + "key": "Locale", + "keyColor": "cyan" + }, + { + "type": "break" + }, + { + "type": "colors", + "symbol": "circle" + } + ] +} diff --git a/setup.sh b/setup.sh index 78ee207..f8146b2 100755 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ set -e DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Packages to stow -PACKAGES=(bash kitty) +PACKAGES=(bash kitty fastfetch) echo "Setting up dotfiles from $DOTFILES_DIR"