fish: a bit fancier starship prompt

This commit is contained in:
Daniel Lundin 2024-03-26 00:41:11 +01:00
parent fab020b373
commit 5cc5e1ff8e
4 changed files with 57 additions and 14 deletions

View file

@ -4,9 +4,15 @@ set fish_greeting
fish_add_path $HOME/.cargo/bin
fish_add_path $HOME/bin
if status is-interactive
export LESS="--mouse --wheel-lines=1 -nRXF"
export LESSCOLORIZER="bat"
export LESSOPEN="|lesspipe.sh %s"
export PAGER="bat"
export BAT_PAGER="less -r"
## Utilities
function tree
@ -30,6 +36,11 @@ if status is-interactive
end
bind \cg jump
## Kubernetes
fish_add_path $HOME/.krew/bin
function kubectl --wraps kubectl
command grc --colour=on kubectl $argv
end
## History

View file

@ -26,6 +26,8 @@ SETUVAR fish_color_selection:\x2d\x2dbackground\x3d313244
SETUVAR fish_color_status:f38ba8
SETUVAR fish_color_user:94e2d5
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_cursor_default:line
SETUVAR fish_cursor_normal:line
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_background:\x1d
SETUVAR fish_pager_color_completion:cdd6f4
@ -40,4 +42,4 @@ SETUVAR fish_pager_color_selected_background:\x1d
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/dln/bin\x1e/home/dln/\x2ecargo/bin
SETUVAR fish_user_paths:/home/dln/\x2ekrew/bin\x1e/home/dln/bin\x1e/home/dln/\x2ecargo/bin