Skip to content

Commit 2f6c577

Browse files
committed
various things
1 parent 971fe5d commit 2f6c577

File tree

7 files changed

+26
-8
lines changed

7 files changed

+26
-8
lines changed

.aliases

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ alias xpraserver='xpra start --printing=no --systemd-run=no --daemon=no :110'
8181
# weird ass behavior without this.
8282
alias watchexec="watchexec --project-origin ."
8383

84+
alias fdfind="fd"

.exports

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export FZF_CTRL_T_COMMAND='fd'
3535
export FZF_CTRL_T_OPTS="--preview 'bat -n --color=always {} 2>/dev/null || tree -C {}'"
3636

3737

38-
export CLOUDSDK_PYTHON=/usr/bin/python3
38+
# FYI /usr/bin/python3 and the xcode python3 (also listed in `which -a python3` are py3.9. we want py3.10+)
39+
export CLOUDSDK_PYTHON=/Library/GoogleCorpSupport/bin/python3
3940

4041
export GOPATH=$HOME/.go/

.gitconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,5 @@
209209
autoupdate = true
210210
# [blame]
211211
# ignorerevsfile = .git-blame-ignore-revs
212+
[protocol "sso"]
213+
allow = always

.prettier.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* FYI "Prettier intentionally doesn’t support any kind of global configuration." so copy and adapt for each project.
3+
*
24
* @see https://prettier.io/docs/configuration
35
* @type {import("prettier").Config}
46
*/

fish/aliases.fish

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ abbr rm 'rm -v'
1515
abbr cp 'cp -v'
1616

1717
abbr nr 'npm run'
18+
abbr npmrun 'npm run'
19+
abbr pnpmrun 'pnpm run'
20+
1821

1922
alias chmox='chmod +x'
2023

@@ -28,7 +31,7 @@ alias la='eza --classify=auto --color --group-directories-first --sort=extension
2831
# Ehh.. yes gdu is much faster but doesnt support ** in ignore/excludes. use them deliberately for now
2932
# alias ncdu "command -v gdu-go > /dev/null && gdu-go || ncdu"
3033

31-
abbr write-commit-message "git diffbranch | llm --system-fragment ~/code/dotfiles/private/prompts/devtools-commit-message.md --model=gemini-2.5-pro"
34+
abbr write-commit-message "git diffbranch | llm --system-fragment ~/code/dotfiles/private/prompts/devtools-commit-message.md --model=gemini-3-flash-preview"
3235

3336
# typos and abbreviations
3437
abbr g git
@@ -40,11 +43,13 @@ abbr bwre brew
4043
abbr brwe brew
4144

4245
abbr cat 'bat -P'
46+
abbr ccat 'cat'
4347
# Skip line-numbers and grid. https://github.com/sharkdp/bat/blob/e608b331425ca2ce8f8d0bd37e7f90901f91eb99/src/style.rs#L27-L61
4448
# In the future this can be `default,-numbers,-grid` but they haven't released in 18months so.....
4549
set -x BAT_STYLE "changes,header-filename,header-filesize,snip,rule"
4650

4751
abbr push "git push"
52+
abbr dels "delta --side-by-side"
4853

4954
# `g co`, etc. subcommand expansion with `abbr`.
5055
# todo, migrate to the new --command thing? https://github.com/paulirish/dotfiles/issues/121
@@ -76,6 +81,7 @@ function subcommand_abbr
7681
end
7782

7883
subcommand_abbr git c "commit -am"
84+
abbr gitc "git commit -am"
7985
subcommand_abbr git tc "commit -am"
8086
subcommand_abbr git cm "commit --no-all -m"
8187
subcommand_abbr git co "checkout"
@@ -115,10 +121,14 @@ alias master="main"
115121

116122
# fd is fast but their multicore stuff is dumb and slow and bad. https://github.com/sharkdp/fd/issues/1203
117123
# alias fd='command fd -j1 --exclude node_modules'
124+
abbr fdfind 'fd'
125+
abbr fzfall 'fd --unrestricted | fzf'
126+
118127
# By default watchexec thinks the project origin is higher up. So dumb.
119128
abbr watchexec 'watchexec --project-origin . --ignore node_modules'
120129

121130

131+
122132
# for counting instances.. `ag -o 'metadata","name":".*?"' trace.json | sorteduniq`
123133
alias sorteduniq="sort | uniq -c | sort --reverse --ignore-leading-blanks --numeric-sort" # -rbn
124134
alias sorteduniq-asc="sort | uniq -c | sort --ignore-leading-blanks --numeric-sort" # -bn
@@ -156,7 +166,7 @@ function gemi
156166
# no markdown parsing here without some real fancy stuff. because you dont want to send to markdown renderer (glow) inbetween backticks, etc.
157167
llm chat -m gemini-2.5-flash
158168
else
159-
llm prompt -m gemini-2.5-flash "$argv" && echo "⬇️… and now rendered…⬇️" && llm logs -r | glow
169+
llm prompt -m gemini-2.5-flash "$argv" && echo -e "\n\n\n⬇️… and now rendered…⬇️\n\n\n" && llm logs -r | glow
160170
end
161171
end
162172

@@ -165,7 +175,7 @@ function openai
165175
if test -z "$argv[1]"
166176
llm chat -m gpt-4o
167177
else
168-
llm prompt -m gpt-4o "$argv" && echo "⬇️… and now rendered…⬇️" && llm logs -r | glow
178+
llm prompt -m gpt-4o "$argv" && echo -e "\n\n\n⬇️… and now rendered…⬇️\n\n\n" && llm logs -r | glow
169179
end
170180
end
171181

fish/chromium.fish

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,16 @@ function cr --description "run chrome with dev devtools. optionally, pass canary
117117
set --erase argv[1]
118118
end
119119

120-
set -l cmd "$crpath --custom-devtools-frontend=file://$dtpath $_flags $clutch_chrome_flags $argv"
120+
set -l cmd "$crpath --custom-devtools-frontend=file://$dtpath $_flags $clutch_chrome_flags --enable-features=\"DevToolsGreenDevUi\" $argv"
121121
echo " > $cmd"
122122
eval $cmd
123123
end
124124

125125

126126
function crcanary --description "Run Chrome Canary with dev devtools"
127127
# go/perfai
128-
dtcr canary "--enable-features=\"DevToolsAiAssistancePerformanceAgent:insights_enabled/true\"" $argv
128+
# dtcr canary "--enable-features=\"DevToolsAiAssistancePerformanceAgent:insights_enabled/true\"" $argv
129+
dtcr canary $argv
129130
end
130131

131132
function crrelease --description "Run Chrome for Testing with release build devtools"

fish/config.fish

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function ssource --description "source most of my dotfiles, useful if making cha
2727
# pull in all shared `export …` aka `set -gx …`
2828
source ~/.exports
2929

30-
if test -e "$HOME/code/dotfiles/private/extras.fish";
31-
source $HOME/code/dotfiles/private/extras.fish
30+
if test -e "$HOME/code/dotfiles/private/extras.private.fish";
31+
source $HOME/code/dotfiles/private/extras.private.fish
3232
end
3333

3434
# for things not checked into git
@@ -108,3 +108,4 @@ set -g fish_pager_color_progress cyan
108108

109109
string match -q "$TERM_PROGRAM" "vscode"
110110
and . (code --locate-shell-integration-path fish)
111+

0 commit comments

Comments
 (0)