Skip to content

Commit

Permalink
devtools: give myself the useful URLs in a lil landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 24, 2023
1 parent 6742581 commit af898cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fish/chromium.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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,<p>hi.<p><textarea cols=100>devtools://devtools/bundled/devtools_app.html?loadTimelineFromURL=</textarea><p><textarea cols=100>devtools://devtools/bundled/devtools_app.html</textarea>"
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
Expand Down
3 changes: 3 additions & 0 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit af898cf

Please sign in to comment.