From d73eea18892a877433c8ae04f9514cd6f49c4e74 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Mon, 18 Mar 2024 23:34:19 +0000 Subject: Initial commit --- fish/config.fish | 34 ++++++++++++++++++++++++++++++++++ fish/functions/fish_prompt.fish | 6 ++++++ fish/functions/fish_right_prompt.fish | 3 +++ 3 files changed, 43 insertions(+) create mode 100644 fish/config.fish create mode 100644 fish/functions/fish_prompt.fish create mode 100644 fish/functions/fish_right_prompt.fish (limited to 'fish') diff --git a/fish/config.fish b/fish/config.fish new file mode 100644 index 0000000..2f110c6 --- /dev/null +++ b/fish/config.fish @@ -0,0 +1,34 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end + +set fish_greeting + +fish_add_path $HOME/Scripts + +# unset most of the colours +set fish_color_normal normal +set fish_color_autosuggestion --underline +set fish_color_cancel --reverse +set fish_color_command +set fish_color_comment +set fish_color_cwd +set fish_color_cwd_root +set fish_color_end +set fish_color_error +set fish_color_escape +set fish_color_history_current --underline +set fish_color_host +set fish_color_host_remote +set fish_color_keyword +set fish_color_match --background=red +set fish_color_operator +set fish_color_option +set fish_color_param +set fish_color_quote +set fish_color_redirection +set fish_color_search_match --reverse +set fish_color_selection --background=green +set fish_color_status +set fish_color_user +set fish_color_valid_path diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..eeec7d8 --- /dev/null +++ b/fish/functions/fish_prompt.fish @@ -0,0 +1,6 @@ +function fish_prompt + #set_color $fish_color_cwd + echo -n (basename $PWD) + #set_color normal + echo -n ' ) ' +end diff --git a/fish/functions/fish_right_prompt.fish b/fish/functions/fish_right_prompt.fish new file mode 100644 index 0000000..c3235a5 --- /dev/null +++ b/fish/functions/fish_right_prompt.fish @@ -0,0 +1,3 @@ +function fish_right_prompt + date '+%H:%M' +end -- cgit 1.4.1-2-gfad0