From 8ed0c06d3bd5c0ea2f446e16a288dfdb4f4b4b4a Mon Sep 17 00:00:00 2001 From: zoe Date: Sat, 2 Apr 2022 18:31:11 +0200 Subject: [PATCH] first commit --- config.fish | 55 ++++++++++++++++++++++++++++++++++++++ fish_variables | 31 +++++++++++++++++++++ functions/fish_prompt.fish | 3 +++ 3 files changed, 89 insertions(+) create mode 100644 config.fish create mode 100644 fish_variables create mode 100644 functions/fish_prompt.fish diff --git a/config.fish b/config.fish new file mode 100644 index 0000000..12557c6 --- /dev/null +++ b/config.fish @@ -0,0 +1,55 @@ +if status is-interactive + # Set greeting + set fish_greeting "" + # Commands to run in interactive sessions can go here + # Dracula Color Palette + set -l foreground f8f8f2 + set -l selection 44475a + set -l comment 6272a4 --italics + set -l red ff5555 + set -l orange ffb86c + set -l yellow f1fa8c + set -l green 50fa7b + set -l purple bd93f9 + set -l cyan 8be9fd + set -l pink ff79c6 + + # Syntax Highlighting Colors + set -g fish_color_normal $foreground + set -g fish_color_command $cyan + set -g fish_color_keyword $pink + set -g fish_color_quote $yellow + set -g fish_color_redirection $foreground + set -g fish_color_end $orange + set -g fish_color_error $red + set -g fish_color_param $purple + set -g fish_color_comment $comment + set -g fish_color_selection --background=$selection + set -g fish_color_search_match --background=$selection + set -g fish_color_operator $green + set -g fish_color_escape $pink + set -g fish_color_autosuggestion $comment + set -g fish_color_cancel $red --reverse + set -g fish_color_option $orange + + # Default Prompt Colors + set -g fish_color_cwd $green + set -g fish_color_host $purple + set -g fish_color_host_remote $purple + set -g fish_color_user $cyan + + # Completion Pager Colors + set -g fish_pager_color_progress $comment + set -g fish_pager_color_background + set -g fish_pager_color_prefix $cyan + set -g fish_pager_color_completion $foreground + set -g fish_pager_color_description $comment + set -g fish_pager_color_selected_background --background=$selection + set -g fish_pager_color_selected_prefix $cyan + set -g fish_pager_color_selected_completion $foreground + set -g fish_pager_color_selected_description $comment + set -g fish_pager_color_secondary_background + set -g fish_pager_color_secondary_prefix $cyan + set -g fish_pager_color_secondary_completion $foreground + set -g fish_pager_color_secondary_description $comment +end diff --git a/fish_variables b/fish_variables new file mode 100644 index 0000000..aa4b877 --- /dev/null +++ b/fish_variables @@ -0,0 +1,31 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:\x2d\x2ditalics\x1ewhite +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:white +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:\x2d\x2dbackground\x3d111 +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish new file mode 100644 index 0000000..d76fca5 --- /dev/null +++ b/functions/fish_prompt.fish @@ -0,0 +1,3 @@ +function fish_prompt +printf '%s%s%s♥%s%s \n %s%s%s%s%s ' (set_color $fish_color_user) $USER (set_color magenta) (set_color $fish_color_host) $hostname (set_color $fish_color_cwd) (prompt_pwd) (set_color green) (fish_git_prompt) (set_color normal) +end