### Bobthefish Theme Complete Configuration Example Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt A comprehensive example of the bobthefish theme configuration file, demonstrating various options for color schemes, fonts, user/host display, path formatting, Git status, version managers, and more. ```fish # ~/.config/fish/conf.d/bobthefish.fish # Complete bobthefish configuration example # Color scheme set -g theme_color_scheme nord # Font settings set -g theme_nerd_fonts yes set -g theme_powerline_fonts yes # User/host display set -g theme_display_user ssh set -g theme_display_hostname ssh set -g default_user myusername # Path display set -g fish_prompt_pwd_dir_length 1 set -g theme_project_dir_length 0 set -g theme_show_project_parent yes # Git options set -g theme_display_git_dirty_verbose yes set -g theme_display_git_ahead_verbose yes set -g theme_display_git_stashed_verbose yes set -g theme_display_git_default_branch no set -g theme_use_abbreviated_branch_name yes # Version managers set -g theme_display_ruby no set -g theme_display_virtualenv yes set -g theme_display_go verbose set -g theme_display_node yes # Containers and cloud set -g theme_display_docker_machine yes set -g theme_display_k8s_context yes set -g theme_display_k8s_namespace yes set -g theme_display_aws_vault_profile yes # Status display set -g theme_show_exit_status yes set -g theme_display_jobs_verbose yes set -g theme_display_vi yes # Right prompt set -g theme_display_date yes set -g theme_date_format "+%H:%M" set -g theme_display_cmd_duration yes # Newline cursor (optional) set -g theme_newline_cursor yes set -g theme_newline_prompt "❯ " # Ignore VCS in specific paths (performance) set -g theme_vcs_ignore_paths ~/large-repo ~/node_modules ``` -------------------------------- ### Install bobthefish Theme Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Installs the bobthefish theme using the Oh My Fish package manager. Requires Oh My Fish to be installed. ```fish omf install bobthefish ``` -------------------------------- ### Install bobthefish Theme Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Commands to install the Oh My Fish framework and the bobthefish theme. It also includes configuration settings for font support, specifically toggling between Powerline fonts and Nerd Fonts. ```fish # Install Oh My Fish first if not already installed curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish # Install bobthefish theme omf install bobthefish # You'll need a Powerline-patched font. To use without special fonts: set -g theme_powerline_fonts no # For Nerd Fonts support (recommended for best visuals): set -g theme_nerd_fonts yes ``` -------------------------------- ### Fish Shell Greeting Prompt Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Defines the custom greeting message displayed when a new Fish shell session starts. It shows a welcome message with the current user and the date. ```fish function fish_greeting set_color $fish_color_autosuggestion echo "Welcome back, "(whoami)"!" echo (date "+%A, %B %d, %Y") set_color normal end ``` -------------------------------- ### Fish Shell Prompt Function Overrides (Disabling Features) Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Provides examples of how to disable specific prompt elements by defining empty functions. This includes disabling the right prompt, vi mode indicator, and terminal title updates. ```fish function fish_right_prompt; end ``` ```fish function fish_mode_prompt; end ``` ```fish function fish_title; end ``` -------------------------------- ### Configure Prompt Path Abbreviation Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Sets the length of the abbreviated path shown in the prompt. 0 shows the full path, 1 shows the first character of each parent directory. ```fish set -g fish_prompt_pwd_dir_length 0 ``` -------------------------------- ### Configure Language Version and Environment Display Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Toggles the display of version information for Ruby, Python, Go, Node.js, and Nix environments. ```fish set -g theme_display_ruby no set -g theme_display_virtualenv verbose set -x VIRTUAL_ENV_DISABLE_PROMPT 1 set -g theme_display_go verbose set -g theme_display_node always set -g theme_display_nix no ``` -------------------------------- ### Configure Project Parent Directory Display Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Determines whether to show the parent path of the project directory in the prompt. 'no' shows only the project directory name. ```fish set -g theme_show_project_parent no ``` -------------------------------- ### Configure Prompt Display Options Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Global variables used to toggle display features such as user/host visibility, path abbreviation, Vi mode indicators, and status/job reporting. ```fish set -g theme_display_user yes set -g theme_display_hostname ssh set -g fish_prompt_pwd_dir_length 1 set -g theme_display_vi yes set -g theme_show_exit_status yes set -g theme_newline_cursor yes ``` -------------------------------- ### Configure Project Directory Path Length Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Sets the length of the abbreviated path relative to the project root shown in the prompt. Defaults to 0 (full path). ```fish set -g theme_project_dir_length 1 ``` -------------------------------- ### Configure Theme Fonts and Glyphs Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Sets preferences for Powerline and Nerd Font support to ensure proper rendering of theme icons. ```fish set -g theme_powerline_fonts yes set -g theme_nerd_fonts yes set -g theme_avoid_ambiguous_glyphs yes ``` -------------------------------- ### Configure Right Prompt Elements Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Customizes the right-side prompt by setting date formats, timezones, and toggling command duration tracking. ```fish set -g theme_display_date no set -g theme_date_format "+%Y-%m-%d %H:%M:%S" set -g theme_date_timezone America/Los_Angeles set -g theme_display_cmd_duration no ``` -------------------------------- ### Configure Default User for Prompt Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Specifies a default username. The username will only be shown in the prompt if it differs from this default. ```fish set -g default_user your_normal_user ``` -------------------------------- ### Configure Verbose Git Status Indicators Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Enables detailed Git status information including line counts, ahead/behind status, and stash counts in the prompt. ```fish set -g theme_display_git_dirty_verbose yes set -g theme_display_git_ahead_verbose yes set -g theme_display_git_stashed_verbose yes ``` -------------------------------- ### Configure Powerline Fonts Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Sets the theme to use Powerline fonts. If not enabled, a compatibility fallback is used. Requires a Powerline-patched font. ```fish set -g theme_powerline_fonts no ``` -------------------------------- ### Configure Git Integration Settings Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Variables to control how Git status is displayed, including toggling integration, hiding specific indicators, and managing branch name display behavior. ```fish set -g theme_display_git yes set -g theme_display_git_dirty yes set -g theme_display_git_default_branch yes set -g theme_use_abbreviated_branch_name yes ``` -------------------------------- ### Configure Color Schemes Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Instructions for setting the theme's color scheme by modifying the Fish configuration file. Users can choose from various dark, light, and terminal-adaptive color palettes. ```fish # Set color scheme in ~/.config/fish/conf.d/bobthefish.fish # Dark themes set -g theme_color_scheme dark set -g theme_color_scheme solarized set -g theme_color_scheme base16 set -g theme_color_scheme nord set -g theme_color_scheme gruvbox set -g theme_color_scheme dracula set -g theme_color_scheme zenburn set -g theme_color_scheme catppuccin-mocha # Light themes set -g theme_color_scheme light set -g theme_color_scheme solarized-light set -g theme_color_scheme base16-light set -g theme_color_scheme gruvbox-light set -g theme_color_scheme catppuccin-latte # Terminal-adaptive schemes set -g theme_color_scheme terminal set -g theme_color_scheme terminal-dark-white set -g theme_color_scheme terminal-light set -g theme_color_scheme terminal2 ``` -------------------------------- ### Configure Container and Cloud Tool Integration Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Enables or disables the display of status information for Docker, Vagrant, Kubernetes, AWS Vault, and GNU Screen. ```fish set -g theme_display_docker_machine no set -g theme_display_vagrant yes set -g theme_display_k8s_context yes set -g theme_display_k8s_namespace yes set -g theme_display_aws_vault_profile yes set -g theme_display_screen no ``` -------------------------------- ### Override Default Fish Functions Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Demonstrates how to override default theme functions like the greeting by defining custom functions in the fish configuration directory. ```fish function fish_greeting; end ``` -------------------------------- ### Configure Prompt Display Options Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Customizes the display of various elements in the fish shell prompt, such as vi mode, exit status, background jobs, username, and hostname. ```fish set -g theme_show_exit_status yes set -g theme_display_jobs_verbose yes set -g theme_display_user ssh set -g theme_display_hostname yes ``` -------------------------------- ### Configure Hostname Display Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Controls whether the hostname is displayed in the prompt. Can be set to always show, only on SSH, or never show. ```fish set -g theme_display_hostname ssh ``` -------------------------------- ### Configure Theme Color Scheme Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Sets the color scheme for the bobthefish theme. Common options include 'dark' and 'light'. ```fish set -g theme_color_scheme dark ``` -------------------------------- ### Configure Nerd Fonts Support Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Enables support for Nerd Fonts, which provides a wider range of glyphs. Requires a Nerd Fonts patched font. ```fish set -g theme_nerd_fonts yes ``` -------------------------------- ### Define Base16-Monokai Colors for Bobthefish Theme Source: https://github.com/oh-my-fish/theme-bobthefish/wiki/Base16-Monokai-custom-color-scheme This Fish shell function defines the color palette for the Base16-Monokai theme. It sets variables for each base color (base00-base0F) and then assigns these colors to various prompt components like path, repository status, Git modes, and plugin indicators. The function relies on a helper function `__bobthefish_colors` which is not included here. ```fish function bobthefish_colors -S -d 'Define a custom bobthefish color scheme' __bobthefish_colors base16-dark set -l base00 272822 set -l base01 383830 set -l base02 49483e set -l base03 75715e set -l base04 a59f85 set -l base05 f8f8f2 set -l base06 f5f4f1 set -l base07 f9f8f5 set -l base08 f92672 # red set -l base09 fd971f # orange set -l base0A f4bf75 # yellow set -l base0B a6e22e # green set -l base0C a1efe4 # cyan set -l base0D 66d9ef # blue set -l base0E ae81ff # violet set -l base0F cc6633 # brown set -l colorfg $base02 set -x color_initial_segment_exit $base01 $base08 --bold set -x color_initial_segment_private $base01 $base04 --bold set -x color_initial_segment_su $base01 $base0B --bold set -x color_initial_segment_jobs $base01 $base0D --bold set -x color_path $base02 $base05 set -x color_path_basename $base02 $base06 --bold set -x color_path_nowrite $base02 $base09 set -x color_path_nowrite_basename $base02 $base09 --bold set -x color_repo $base0B $colorfg set -x color_repo_work_tree $base02 $colorfg --bold set -x color_repo_dirty $base08 $base05 set -x color_repo_staged $base09 $colorfg set -x color_vi_mode_default $base03 $base05 --bold set -x color_vi_mode_insert $base0B $colorfg --bold set -x color_vi_mode_visual $base09 $colorfg --bold set -x color_vagrant $base0C $colorfg --bold set -x color_k8s $base08 $base05 --bold set -x color_aws_vault $base0D $colorfg --bold set -x color_aws_vault_expired $base0D $base08 --bold set -x color_username $base02 $base0D --bold set -x color_hostname $base02 $base0D set -x color_rvm $base08 $base05 --bold set -x color_nvm $base0B $colorfg --bold set -x color_virtualfish $base0D $colorfg --bold set -x color_virtualgo $base0D $colorfg --bold set -x color_desk $base0D $colorfg --bold set -x color_nix $base0D $colorfg --bold end ``` -------------------------------- ### Configure Username Display Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Controls whether the username is displayed in the prompt. Can be set to always show, only on SSH, or never show. ```fish set -g theme_display_user no ``` -------------------------------- ### Fish Shell Right Prompt (Time Display) Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Configures the right-aligned prompt to display the current time. This snippet overrides the default right prompt to show the time in HH:MM format. ```fish function fish_right_prompt set_color $fish_color_autosuggestion echo -n (date "+%H:%M") set_color normal end ``` -------------------------------- ### Customize Shell Greeting Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Overrides the default shell greeting function to display a custom message with specific color formatting. ```fish function fish_greeting set_color $fish_color_autosuggestion echo "I'm completely operational, and all my circuits are functioning perfectly." set_color normal end ``` -------------------------------- ### Bobthefish Theme Terminal Title Configuration Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt Configures the content displayed in the terminal title or tab. These settings control whether the process name, path, and username are shown. ```fish # ~/.config/fish/conf.d/bobthefish.fish # === Title Content === set -g theme_title_display_process yes # Show current process name set -g theme_title_display_path no # Hide current working directory set -g theme_title_display_user yes # Show username (if not default user) set -g theme_title_use_abbreviated_path no # Show full paths in title ``` -------------------------------- ### Configure Sudo User Display Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Determines if the username of the user who invoked sudo is displayed in the prompt when in a root shell. ```fish set -g theme_display_sudo_user yes ``` -------------------------------- ### Define Custom bobthefish Color Scheme Source: https://context7.com/oh-my-fish/theme-bobthefish/llms.txt This function allows users to override default theme colors for various segments like status, path, git, and virtual environments. It uses the 'set -x' command to export color definitions globally. ```fish function bobthefish_colors -S -d 'Define a custom bobthefish color scheme' __bobthefish_colors default set -x color_initial_segment_exit ffffff ce000f --bold set -x color_path 333333 999999 set -x color_repo addc10 0c4801 set -x color_vi_mode_default 999999 333333 --bold set -x color_virtualfish 005faf cccccc --bold set -x color_k8s 189303 ffffff --bold set -x color_username cccccc 255e87 --bold set -x color_hostname cccccc 255e87 end bobthefish_display_colors ``` -------------------------------- ### Define Custom Bobthefish Color Scheme (Fish) Source: https://github.com/oh-my-fish/theme-bobthefish/wiki/Custom-color-schemes This Fish shell function, `bobthefish_colors`, allows users to define a custom color scheme for the Bobthefish theme. It overrides default color variables using `set -x`. Users can optionally include a base color scheme and then customize specific elements. ```fish function bobthefish_colors -S -d 'Define a custom bobthefish color scheme' # Optionally include a base color scheme __bobthefish_colors default # Then override everything you want! # Note that these must be defined with `set -x` set -x color_initial_segment_exit white red --bold set -x color_initial_segment_private white black --bold set -x color_initial_segment_su white green --bold set -x color_initial_segment_jobs white blue --bold set -x color_path black white set -x color_path_basename black white --bold set -x color_path_nowrite magenta black set -x color_path_nowrite_basename magenta black --bold set -x color_repo green black set -x color_repo_work_tree black black --bold set -x color_repo_dirty brred black set -x color_repo_staged yellow black set -x color_vi_mode_default brblue black --bold set -x color_vi_mode_insert brgreen black --bold set -x color_vi_mode_visual bryellow black --bold set -x color_vagrant brcyan black set -x color_k8s magenta white --bold set -x color_aws_vault blue black --bold set -x color_aws_vault_expired blue red --bold set -x color_username white black --bold set -x color_hostname white black set -x color_screen brgreen white set -x color_rvm brmagenta black --bold set -x color_virtualfish brblue black --bold set -x color_virtualgo brblue black --bold set -x color_desk brblue black --bold set -x color_nix burble black --bold end ``` -------------------------------- ### Disable Shell Prompt Elements Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Disables specific theme prompt elements by defining an empty function in the Fish configuration. ```fish function fish_right_prompt; end ``` -------------------------------- ### Disable Virtualenv Prompt Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Disables the default virtualenv prompt to prevent conflicts with the fish shell's prompt, recommended when using virtualenv. ```fish set -x VIRTUAL_ENV_DISABLE_PROMPT 1 ``` -------------------------------- ### Define Custom Color Scheme Source: https://github.com/oh-my-fish/theme-bobthefish/blob/master/README.md Overrides the default bobthefish color palette by defining a bobthefish_colors function. It uses set -x to export color variables for various UI elements. ```fish function bobthefish_colors -S -d 'Define a custom bobthefish color scheme' ___bobthefish_colors default set -x color_initial_segment_exit ffffff ce000f --bold set -x color_initial_segment_private ffffff 255e87 set -x color_initial_segment_su ffffff 189303 --bold set -x color_initial_segment_jobs ffffff 255e87 --bold set -x color_path 333333 999999 set -x color_path_basename 333333 ffffff --bold set -x color_path_nowrite 660000 cc9999 set -x color_path_nowrite_basename 660000 cc9999 --bold set -x color_repo addc10 0c4801 set -x color_repo_work_tree 333333 ffffff --bold set -x color_repo_dirty ce000f ffffff set -x color_repo_staged f6b117 3a2a03 set -x color_vi_mode_default 999999 333333 --bold set -x color_vi_mode_insert 189303 333333 --bold set -x color_vi_mode_visual f6b117 3a2a03 --bold set -x color_vagrant 48b4fb ffffff --bold set -x color_aws_vault set -x color_aws_vault_expired set -x color_username cccccc 255e87 --bold set -x color_hostname cccccc 255e87 set -x color_rvm af0000 cccccc --bold set -x color_virtualfish 005faf cccccc --bold set -x color_virtualgo 005faf cccccc --bold set -x color_desk 005faf cccccc --bold set -x color_nix 005faf cccccc --bold end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.