From 26c00df9d1c0d604c1a041f7649acf46e3405f5d Mon Sep 17 00:00:00 2001 From: Amazingca Date: Fri, 11 Sep 2026 21:45:59 -0600 Subject: [PATCH] Add fish stuff --- config/fish/config.fish | 102 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 config/fish/config.fish diff --git a/config/fish/config.fish b/config/fish/config.fish new file mode 100644 index 0000000..9955dce --- /dev/null +++ b/config/fish/config.fish @@ -0,0 +1,102 @@ +# For terminals which support above 1-bit colors + +set --global fish_color_autosuggestion 707A8C +set --global fish_color_cancel --reverse +set --global fish_color_command 5CCFE6 +set --global fish_color_comment 5C6773 +set --global fish_color_cwd 73D0FF +set --global fish_color_cwd_root red +set --global fish_color_end F29E74 +set --global fish_color_error FF3333 +set --global fish_color_escape 95E6CB +set --global fish_color_history_current --bold +set --global fish_color_host --reset +set --global fish_color_host_remote yellow +set --global fish_color_normal CBCCC6 +set --global fish_color_operator FFCC66 +set --global fish_color_param CBCCC6 +set --global fish_color_quote BAE67E +set --global fish_color_redirection D4BFFF +set --global fish_color_search_match --bold --background=FFCC66 +set --global fish_color_selection --bold --background=FFCC66 +set --global fish_color_status red +set --global fish_color_user brgreen +set --global fish_color_valid_path --underline=single +set --global fish_pager_color_completion --reset +set --global fish_pager_color_description B3A06D +set --global fish_pager_color_prefix --bold --underline=single +set --global fish_pager_color_progress brwhite --bold --background=cyan +set --global fish_pager_color_selected_background --background=FFCC66 +set --global fish_pager_color_selected_completion +set --global fish_pager_color_selected_description +set --global fish_pager_color_selected_prefix + +# For terminals that only support 1-bit color +set --global fish_color_autosuggestion brblack +set --global fish_color_cancel --reverse +set --global fish_color_command --reset +set --global fish_color_comment red +set --global fish_color_cwd green +set --global fish_color_cwd_root red +set --global fish_color_end green +set --global fish_color_error brred +set --global fish_color_escape brcyan +set --global fish_color_history_current --bold +set --global fish_color_host --reset +set --global fish_color_host_remote yellow +set --global fish_color_normal --reset +set --global fish_color_operator brcyan +set --global fish_color_param cyan +set --global fish_color_quote yellow +set --global fish_color_redirection cyan --bold +set --global fish_color_search_match white --bold --background=brblack +set --global fish_color_selection white --bold --background=brblack +set --global fish_color_status red +set --global fish_color_user brgreen +set --global fish_color_valid_path --underline=single +set --global fish_pager_color_description yellow --italics +set --global fish_pager_color_prefix --bold --underline=single +set --global fish_pager_color_progress brwhite --bold --background=cyan +set --global fish_pager_color_selected_background --reverse + +function fish_greeting + printf "%s%s %s%s %s%s%s\n" (set_color purple) Hello (set_color green) (random choice "cutie" "sophont" "floret" "terran") (set_color purple) :3 (set_color --reset) +end + +function fish_prompt --description 'Informative prompt' + #Save the return status of the previous command + set -l last_pipestatus $pipestatus + set -lx __fish_last_status $status # Export for __fish_print_pipestatus. + + set -l status_color (set_color $fish_color_status) + set -l statusb_color (set_color --bold $fish_color_status) + set -l pipestatus_string (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus) + + printf "%s%s@%s %s%s%s > " (set_color brmagenta) $USER (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color --reset) +end + +function fish_right_prompt + echo (set_color brblack)(date +"%F %I:%M %p")(set_color --reset) +end + +set -gx EDITOR helix + +set -gx GPG_TTY (tty) + +set -gx WGPU_BACKEND vulkan + +set -gx LANG en_CA.UTF-8 + +fish_add_path ~/.cargo/bin ~/go/bin /opt/cuda/bin + +set VPN_GATEWAY gateway.colostate.edu + +alias gp="sudo gpclient --fix-openssl connect $VPN_GATEWAY" +alias virt="sudo /usr/bin/modprobe v4l2loopback exclusive_caps=1 card_label=OBS Virtual Camera" +alias c="cosmic-session" +alias g="gnome-shell --wayland" +alias h="start-hyprland" +alias s="sway --unsupported-gpu" +alias x="startxfce4" + +zoxide init fish | source -- 2.54.0