Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
5.3 kB · 142 lines
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143# Aesthetic Computer Development Environment Fish Config (macOS Host)# For Apple Silicon (M1/M2/M3)set -gx PATH /opt/homebrew/bin $HOME/bin $PATH
# Listen for clipboard from Dockerfunction clipboard-listen while true nc -l 12345 | pbcopy endend
# begin starshipstarship init fish | source
# reload fish configalias reload 'source ~/.config/fish/config.fish'
# claude shorthandsalias c 'claude'alias cr 'claude -r'
# alias ac-ssl '~/Desktop/code/aesthetic-computer/ssl-dev/ssl-install.fish'# The above script on macos is copied to ~/bin/ac-ssl and added to sudoers.
# ═══════════════════════════════════════════════════════════════════════════════# 🩸 AESTHETIC COMPUTER - Start Script (macOS)# ═══════════════════════════════════════════════════════════════════════════════
# AC color palettefunction __ac_colors set -g RST (set_color normal) set -g BOLD (set_color --bold) set -g AC_MAGENTA (set_color --bold c81e64) set -g FG_GREEN (set_color green) set -g FG_RED (set_color red) set -g FG_YELLOW (set_color yellow) set -g FG_WHITE (set_color white)end
function __ac_banner __ac_colors echo printf "%s" "$AC_MAGENTA" echo ' ╔═══════════════════════════════════════════════════════════╗' echo ' ║ ║' printf " ║ %s█▀█ █▀▀ █▀ ▀█▀ █ █ █▀▀ ▀█▀ █ █▀▀ █▀▀ █▀█ █▄▀▄█ █▀█%s ║\n" "$FG_WHITE$BOLD" "$RST$AC_MAGENTA" printf " ║ %s█▀█ ██▄ ▄█ █ █▀█ ██▄ █ █ █▄▄ ▄ █▄▄ █▄█ █ ▀ █ █▀▀%s ║\n" "$FG_WHITE$BOLD" "$RST$AC_MAGENTA" echo ' ║ ║' echo ' ╚═══════════════════════════════════════════════════════════╝' printf "%s\n" "$RST"end
function __ac_log set -l icon $argv[1] set -l msg $argv[2] set -l color $argv[3] test -z "$color"; and set color "$AC_MAGENTA" printf "%s▌%s %s%s%s\n" "$color" "$RST" "$icon" " " "$msg"end
function __ac_ok; __ac_log "✓" "$argv[1]" "$FG_GREEN"; endfunction __ac_err; __ac_log "✗" "$argv[1]" "$FG_RED"; endfunction __ac_info; __ac_log "›" "$argv[1]" "$AC_MAGENTA"; endfunction __ac_warn; __ac_log "!" "$argv[1]" "$FG_YELLOW"; end
# 🚀 MAIN START FUNCTIONfunction start set -l workspace ~/Desktop/code/aesthetic-computer __ac_colors __ac_banner # Set up the ssl certificate __ac_info "Setting up SSL..." sudo ac-ssl __ac_ok "SSL ready"
# Kill any existing clipboard listener pkill -f "nc -l 12345" 2>/dev/null sleep 0.2
# Start clipboard listener in background __ac_info "Starting clipboard listener..." fish -c 'while true; nc -l 12345 | pbcopy; end' & __ac_ok "Clipboard listener started"
# Remove old container and start devcontainer via CLI __ac_info "Removing old container..." docker rm -f aesthetic 2>/dev/null
__ac_info "Starting devcontainer..." cd $workspace devcontainer up --workspace-folder .
if test $status -eq 0 __ac_ok "Container ready" # Quit VS Code if running (needed for CDP flag to take effect) __ac_info "Quitting any running VS Code..." osascript -e 'quit app "Visual Studio Code"' 2>/dev/null sleep 1 # Launch VS Code with CDP debugging enabled __ac_info "Launching VS Code with CDP on port 9333..." # Use dev-container+ URI format set -l hex_path (echo -n "/Users/$USER/Desktop/code/aesthetic-computer" | xxd -c 256 -p) set -l uri "vscode-remote://dev-container+$hex_path/workspaces/aesthetic-computer" # Open VS Code with remote debugging for artery-tui control # Must quit VS Code first for --remote-debugging-port to work code --folder-uri "$uri" \ --remote-debugging-port=9333 & __ac_ok "VS Code launched" echo printf "%s ✨ aesthetic.computer ready%s\n" "$AC_MAGENTA$BOLD" "$RST" echo else __ac_err "Failed to start container" return 1 endend
# empty greetingfunction fish_greetingend
# Emulates vim's cursor shape behavior# Set the normal and visual mode cursors to a blockset fish_cursor_default block# Set the insert mode cursor to a lineset fish_cursor_insert line# Set the replace mode cursor to an underscoreset fish_cursor_replace_one underscoreset fish_vi_force_cursor true
# vim bindingsfish_vi_key_bindings
# Created by `pipx` on 2026-02-14 21:34:00set PATH $PATH /Users/jas/.local/bin