4c1e7a7eb9
- Core config layered on CachyOS base with Catppuccin Mocha theming - Fisher plugins: fzf.fish, catppuccin, autopair, replay, puffer-fish, magic-enter, spark - Smart CLI wrappers with fallbacks (bat, lsd, btop, dust, prettyping) - Custom functions: git, docker, network, kitty, AI session management - Extensive abbreviation system for keyboard-driven workflows - Secrets/local sourcing pattern for private and machine-specific config - README with full documentation and personalization guide - AGPLv3+ license with copyright headers on all source files
23 lines
616 B
Fish
23 lines
616 B
Fish
# Copyright (C) 2026 Rootiest
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
function fish_right_prompt
|
|
# 1. Docker Context in Blue
|
|
set -l docker_ctx (docker context show 2>/dev/null)
|
|
if test -n "$docker_ctx"; and test "$docker_ctx" != default
|
|
set_color blue
|
|
echo -n " $docker_ctx "
|
|
set_color normal
|
|
end
|
|
|
|
# 2. Timestamp Logic with Fallback
|
|
set_color brblack
|
|
if type -q __bobthefish_timestamp
|
|
__bobthefish_timestamp
|
|
else
|
|
# Manual fallback format: Wed Feb 11 15:04:28 2026
|
|
date "+%a %b %d %H:%M:%S %Y"
|
|
end
|
|
set_color normal
|
|
end
|