diff --git a/brew.sh b/brew.sh index 7fa331563..b0f87e054 100755 --- a/brew.sh +++ b/brew.sh @@ -64,7 +64,8 @@ brew install ffmpeg # json stuff brew install jq gron -brew install ncdu # find where your diskspace went +# brew install ncdu # find where your diskspace went +brew install gdu # available as gdu-go. faster than ncdu on SSD's. brew install scrcpy # control/view android phone from PC. amazing diff --git a/fish/aliases.fish b/fish/aliases.fish index ae03194ad..03c26edf1 100644 --- a/fish/aliases.fish +++ b/fish/aliases.fish @@ -101,7 +101,7 @@ alias master="main" alias ag='command ag -W (math $COLUMNS - 14)' # fd is fast but their multicore stuff is dumb and slow and bad. https://github.com/sharkdp/fd/issues/1203 -alias fd='command fd -j1 --exclude node_modules' +# alias fd='command fd -j1 --exclude node_modules' # By default watchexec thinks the project origin is higher up. So dumb. alias watchexec='command watchexec --project-origin . --ignore node_modules' @@ -176,9 +176,8 @@ alias reportunit 'yarn jest (find report -iname "*-test.js" | grep -v axe)' alias reportwatch 'watchexec "node build/build-report-components.js && node build/build-report.js --psi && node build/build-sample-reports.js && echo \$(date) && yarn eslint --fix report/renderer/components.js" && bash core/scripts/copy-util-commonjs.sh' # dt. rpp -# in the future this will be: yarn test front_end/panels/timeline/ front_end/models/trace front_end/services/annotations_manager front_end/ui/legacy/components/perf_ui -alias rppunit 'npm run unittest -- --expanded-reporting --mocha-fgrep=Processor\|Timeline\|trace\|Trace\|Appender\|Handler\|Performance\|Annotation\|Flame' -alias rppinter 'npm run interactionstest -- --test-file-pattern="*/performance/**"' +alias rppunit 'npm test -- front_end/panels/timeline/ front_end/models/trace front_end/ui/legacy/components/perf_ui' +alias rppinter 'npm run test -- test/e2e/performance/' alias rppscreen 'third_party/node/node.py --output scripts/test/run_test_suite.js --config test/interactions/test-runner-config.json --mocha-fgrep "[screenshot]" --test-file-pattern="*/performance/**"' abbr xpraclient "xpra attach --video-scaling=off --desktop-scaling=off --dpi=96 --ssh=/usr/bin/ssh 'ssh://glurp/:110'" diff --git a/fish/chromium.fish b/fish/chromium.fish index 45f5d6f99..3face6dbd 100644 --- a/fish/chromium.fish +++ b/fish/chromium.fish @@ -111,6 +111,33 @@ function dtcr --description "run chrome with dev devtools" eval $cmd end + + +function dtcrcanary --description "run chrome canary with dev devtools" + + # function handle_int --on-signal SIGINT + # echo Got SIGINT + # end + + set -l cdup (git rev-parse --show-cdup) + set -l crpath "/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary" + set -l dtpath (realpath out/Default/gen/front_end) + if test ! -e "$dtpath/devtools_app.html" + echo "Not found at: $dtpath/devtools_app.html" + set dtpath (realpath out/Default/gen) + end + if test ! -e "$dtpath/devtools_app.html" # elsa? + echo "Not found at: $dtpath/devtools_app.html ... \nBailing"; return 1 + end + + # 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.
" + # used to use component-server --traces but nah.. http://localhost:11010/ + set -l cmd "$crpath --custom-devtools-frontend=file://$dtpath --user-data-dir=$HOME/chromium-devtools/dt-chrome-profile $clutch_chrome_flags $argv " + echo " > $cmd" + eval $cmd +end + function dtbcr --description "build chromium, then open it" if dtb dtcr diff --git a/fish/functions.fish b/fish/functions.fish index 85a8295b8..dae7e562d 100644 --- a/fish/functions.fish +++ b/fish/functions.fish @@ -126,21 +126,6 @@ function shellswitch chsh -s (brew --prefix)/bin/$argv end -function upgradeyarn - curl -o- -L https://yarnpkg.com/install.sh | bash -end - -function fuck -d 'Correct your previous console command' - set -l exit_code $status - set -l eval_script (mktemp 2>/dev/null ; or mktemp -t 'thefuck') - set -l fucked_up_commandd $history[1] - thefuck $fucked_up_commandd > $eval_script - . $eval_script - rm $eval_script - if test $exit_code -ne 0 - history --delete $fucked_up_commandd - end -end # requires my excellent `npm install -g statikk` function server -d 'Start a HTTP server in the current dir, optionally specifying the port' @@ -160,7 +145,6 @@ function server -d 'Start a HTTP server in the current dir, optionally specifyin end - function conda -d 'lazy initialize conda' functions --erase conda eval /opt/miniconda3/bin/conda "shell.fish" "hook" | source