diff options
Diffstat (limited to 'fish')
-rw-r--r-- | fish/config.fish | 3 | ||||
-rw-r--r-- | fish/fish_variables | 57 | ||||
-rw-r--r-- | fish/functions/fish_prompt.fish | 26 |
3 files changed, 52 insertions, 34 deletions
diff --git a/fish/config.fish b/fish/config.fish index 08341bc..40af5f9 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -19,7 +19,6 @@ set -gx TERM screen-256color set -gx SHELL /usr/bin/fish set -gx LESS '-iMRS -x2' set -gx PATH ~/.local/bin $PATH -set -gx PATH ~/scripts $PATH set -gx PATH ~/bin $PATH set -gx BOOKMARK_PY_SMTP_HOST smtp.fastmail.com @@ -35,7 +34,7 @@ set -gx FZF_DEFAULT_OPTS '--color info:108,prompt:109,spinner:108,pointer:168,ma #set -gx FZF_DEFAULT_OPTS '--color=bw' #source /usr/local/share/fish/functions/fzf-key-bindings.fish -fzf_key_bindings +#fzf_key_bindings # OPAM configuration #source /home/lemon/.opam/opam-init/init.fish > /dev/null 2> /dev/null or true diff --git a/fish/fish_variables b/fish/fish_variables index a4412f5..98a4cb7 100644 --- a/fish/fish_variables +++ b/fish/fish_variables @@ -10,35 +10,46 @@ SETUVAR __fish_init_2_39_8:\x1d SETUVAR __fish_init_2_3_0:\x1d SETUVAR __fish_init_3_x:\x1d SETUVAR __fish_initialized:3400 -SETUVAR fish_color_autosuggestion:555\x1ebrblack -SETUVAR fish_color_cancel:\x2dr -SETUVAR fish_color_command:005fd7 -SETUVAR fish_color_comment:990000 -SETUVAR fish_color_cwd:green -SETUVAR fish_color_cwd_root:red +SETUVAR _fish_abbr_bud:cd\x20\x7e/Documents/Budget/ledger/hledger +SETUVAR fish_color_autosuggestion:666 +SETUVAR fish_color_cancel:\x2d\x2dreverse +SETUVAR fish_color_command:normal +SETUVAR fish_color_comment:888\x1e\x2d\x2ditalics +SETUVAR fish_color_cwd:0A0 +SETUVAR fish_color_cwd_root:A00 SETUVAR fish_color_end:009900 -SETUVAR fish_color_error:ff0000 -SETUVAR fish_color_escape:00a6b2 -SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_error:F22 +SETUVAR fish_color_escape:0AA +SETUVAR fish_color_history_current:0AA SETUVAR fish_color_host:normal -SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue -SETUVAR fish_color_normal:normal -SETUVAR fish_color_operator:00a6b2 -SETUVAR fish_color_param:00afff -SETUVAR fish_color_quote:999900 -SETUVAR fish_color_redirection:00afff -SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_host_remote:\x1d +SETUVAR fish_color_keyword:\x1d +SETUVAR fish_color_match:0AA +SETUVAR fish_color_normal:B2B2B2 +SETUVAR fish_color_operator:0AA +SETUVAR fish_color_option:\x1d +SETUVAR fish_color_param:ccccff +SETUVAR fish_color_quote:9ce781 +SETUVAR fish_color_redirection:FFF +SETUVAR fish_color_search_match:\x2d\x2dbackground\x3d533 +SETUVAR fish_color_selection:\x2d\x2dbackground\x3dB218B2 SETUVAR fish_color_status:red SETUVAR fish_color_user:brgreen SETUVAR fish_color_valid_path:\x2d\x2dunderline SETUVAR fish_greeting: SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_completion:normal -SETUVAR fish_pager_color_description:B3A06D\x1eyellow -SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline -SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR fish_pager_color_background:\x1d +SETUVAR fish_pager_color_completion:BBB +SETUVAR fish_pager_color_description:666 +SETUVAR fish_pager_color_prefix:0AA\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:0AA +SETUVAR fish_pager_color_secondary_background:\x1d +SETUVAR fish_pager_color_secondary_completion:\x1d +SETUVAR fish_pager_color_secondary_description:\x1d +SETUVAR fish_pager_color_secondary_prefix:\x1d +SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3d333 +SETUVAR fish_pager_color_selected_completion:\x1d +SETUVAR fish_pager_color_selected_description:\x1d +SETUVAR fish_pager_color_selected_prefix:\x1d SETUVAR fish_user_paths:/home/lemon/go/bin SETUVAR fisher_dependency_count:Colored\x2dMan\x2dPages\x1ebass diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish index 57a3c21..c4e8847 100644 --- a/fish/functions/fish_prompt.fish +++ b/fish/functions/fish_prompt.fish @@ -1,13 +1,21 @@ -# Defined in /tmp/fish.OarydH/fish_prompt.fish @ line 2 -function fish_prompt --description 'Write out the prompt' - if not set -q __fish_prompt_normal - set -g __fish_prompt_normal (set_color normal) +function fish_prompt + # This is a simple prompt. It looks like + # alfa@nobby /path/to/dir $ + # with the path shortened and colored + # and a "#" instead of a "$" when run as root. + set -l symbol ' $ ' + set -l color $fish_color_cwd + if fish_is_root_user + set symbol ' # ' + set -q fish_color_cwd_root + and set color $fish_color_cwd_root end - if not set -q __fish_prompt_cwd - set -g __fish_prompt_cwd (set_color $fish_color_cwd) - end + echo -n $USER@$hostname + + set_color $color + echo -n (prompt_pwd) + set_color normal - # echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (__fish_vcs_prompt) "$__fish_prompt_normal" ' ' (task +in +PENDING count) '> ' - echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (__fish_vcs_prompt) "$__fish_prompt_normal"'> ' + echo -n $symbol end |