From a208eadd1289461bab82dd9554a2316898e7d23d Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Thu, 1 Sep 2022 20:03:35 -0400 Subject: refactor: organized the entire repo | feat: added pomodoro aliases inspired by bashbunni --- .config/fish/functions/br.fish | 1 + .config/fish/functions/fish_prompt.fish | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 120000 .config/fish/functions/br.fish create mode 100644 .config/fish/functions/fish_prompt.fish (limited to '.config/fish/functions') diff --git a/.config/fish/functions/br.fish b/.config/fish/functions/br.fish new file mode 120000 index 0000000..db89866 --- /dev/null +++ b/.config/fish/functions/br.fish @@ -0,0 +1 @@ +/home/kylert/.local/share/broot/launcher/fish/br.fish \ No newline at end of file diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..57ce705 --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -0,0 +1,26 @@ +set -g __fish_git_prompt_show_informative_status 1 +set -g __fish_git_prompt_hide_untrackedfiles 1 +set -g __fish_git_prompt_showcolorhints 1 + +set -g __fish_git_prompt_color_branch magenta --bold +set -g __fish_git_prompt_showupstream "informative" +set -g __fish_git_prompt_char_upstream_ahead "↑" +set -g __fish_git_prompt_char_upstream_behind "↓" +set -g __fish_git_prompt_char_upstream_prefix "" + +set -g __fish_git_prompt_char_stagedstate "•" +set -g __fish_git_prompt_char_dirtystate "+" +set -g __fish_git_prompt_char_untrackedfiles "…" +set -g __fish_git_prompt_char_conflictedstate "x" +set -g __fish_git_prompt_char_cleanstate "✓" + +set -g __fish_git_prompt_color_dirtystate blue +set -g __fish_git_prompt_color_stagedstate yellow +set -g __fish_git_prompt_color_invalidstate red +set -g __fish_git_prompt_color_untrackedfiles $fish_color_normal +set -g __fish_git_prompt_color_cleanstate green --bold + +function fish_prompt + printf '%s%s%s%s $ ' \ + (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) (fish_git_prompt) +end -- cgit v1.2.3