Add fish config
This commit is contained in:
parent
e0c978d046
commit
55f5601809
5
config/config/fish/config.fish
Normal file
5
config/config/fish/config.fish
Normal file
@ -0,0 +1,5 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
|
||||
fish_add_path /opt/homebrew/bin
|
||||
end
|
42
config/config/fish/fish_variables
Normal file
42
config/config/fish/fish_variables
Normal file
@ -0,0 +1,42 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR fish_color_autosuggestion:8A9199
|
||||
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
||||
SETUVAR fish_color_command:55B4D4
|
||||
SETUVAR fish_color_comment:ABB0B6
|
||||
SETUVAR fish_color_cwd:399EE6
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:ED9366
|
||||
SETUVAR fish_color_error:F51818
|
||||
SETUVAR fish_color_escape:4CBF99
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:\x1d
|
||||
SETUVAR fish_color_keyword:\x1d
|
||||
SETUVAR fish_color_match:F07171
|
||||
SETUVAR fish_color_normal:575F66
|
||||
SETUVAR fish_color_operator:FF9940
|
||||
SETUVAR fish_color_option:\x1d
|
||||
SETUVAR fish_color_param:575F66
|
||||
SETUVAR fish_color_quote:86B300
|
||||
SETUVAR fish_color_redirection:A37ACC
|
||||
SETUVAR fish_color_search_match:\x2d\x2dbackground\x3dFF9940
|
||||
SETUVAR fish_color_selection:\x2d\x2dbackground\x3dFF9940
|
||||
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_background:\x1d
|
||||
SETUVAR fish_pager_color_completion:normal
|
||||
SETUVAR fish_pager_color_description:B3A06D
|
||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
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\x3dFF9940
|
||||
SETUVAR fish_pager_color_selected_completion:\x1d
|
||||
SETUVAR fish_pager_color_selected_description:\x1d
|
||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
20
config/config/fish/functions/fish_prompt.fish
Normal file
20
config/config/fish/functions/fish_prompt.fish
Normal file
@ -0,0 +1,20 @@
|
||||
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.
|
||||
|
||||
if functions -q fish_is_root_user; and fish_is_root_user
|
||||
printf '%s@%s %s%s%s# ' $USER (prompt_hostname) (set -q fish_color_cwd_root
|
||||
and set_color $fish_color_cwd_root
|
||||
or set_color $fish_color_cwd) \
|
||||
(prompt_pwd) (set_color normal)
|
||||
else
|
||||
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 %s%s%s \n> ' (date "+%H:%M:%S") (set_color brblue) \
|
||||
$USER (prompt_hostname) (set_color $fish_color_cwd) $PWD $pipestatus_string \
|
||||
(set_color normal)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user