From af898cf58f3ffd98b0698d729a24f2ece4a3629f Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Tue, 24 Jan 2023 11:54:13 -0800 Subject: [PATCH] devtools: give myself the useful URLs in a lil landing page --- fish/chromium.fish | 4 +++- fish/config.fish | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fish/chromium.fish b/fish/chromium.fish index 68da97fabd..1960fe3afb 100644 --- a/fish/chromium.fish +++ b/fish/chromium.fish @@ -65,7 +65,9 @@ function dtcr --description "run chrome with dev devtools" echo "Not found at: $dtpath/devtools_app.html ... \nBailing"; return 1 end - set -l cmd "$crpath --custom-devtools-frontend=file://$dtpath --user-data-dir=$HOME/chromium-devtools/dt-chrome-profile $clutch_chrome_flags $argv" + # A lil landing page that gives me the local loadTimelineFromURL url to load directly (as we can't have chrome open it (or navigate to it)) + set -l landing_url "data:text/html;charset=utf-8,

hi.

" + set -l cmd "$crpath --custom-devtools-frontend=file://$dtpath --user-data-dir=$HOME/chromium-devtools/dt-chrome-profile $clutch_chrome_flags $argv '$landing_url'" echo " > $cmd" eval $cmd end diff --git a/fish/config.fish b/fish/config.fish index 66b8de38ff..64a82b0203 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -58,6 +58,9 @@ set pure_begin_prompt_with_current_directory false set -U pure_color_success (set_color green) set -U pure_color_git_dirty (set_color cyan) +set -U pure_color_git_unpushed_commits (set_color yellow) +set -U pure_color_git_unpulled_commits (set_color brgreen) + # Status Chars #set __fish_git_prompt_char_dirtystate '*' set __fish_git_prompt_char_upstream_equal ''