···6464# Some UTIs get generated dynamically, but should be usable across macs I guess?
6565# https://stackoverflow.com/questions/8003919/are-dynamic-utis-stable
6666com.microsoft.VSCode dyn.ah62d4rv4ge80e8xq all
6767+com.microsoft.VSCode dyn.ah62d4rv4ge80w5xm all
6868+
+3
.config/fish/completions/pyenv.fish
···11+if test -f /usr/local/opt/pyenv/completions/pyenv.fish
22+ source /usr/local/opt/pyenv/completions/pyenv.fish
33+end
+12-1
.config/fish/conf.d/50-config.fish
···3737 set -gx GIT_PAGER 'bat --plain'
3838 # journalctl output doesn't necessarily play nice with bat
3939 set -gx SYSTEMD_PAGER less
4040- set -gx MANPAGER 'bat --plain --language Manpage'
4040+4141+ set -l sed sed
4242+ if command -q gsed
4343+ set sed gsed
4444+ end
4545+4646+ # wewlad: https://github.com/sharkdp/bat/issues/652
4747+ # Pending better support from bat, just strip all overstrike chars
4848+ # and rely on the syntax highlighting instead of underscores/bold
4949+ set -gx MANPAGER "$sed -E 's#(.)\x08\1#\1#g' |
5050+ $sed -E 's#_\x08(.)#\1#g' |
5151+ bat --plain --language=Manpage"
4152end
42534354if not set -q DOCKER_NAME; and test -f /etc/profile.d/docker_name.sh
+7-3
.config/fish/functions/__fish_bind_star.fish
···55 # typing `!\*`). Probably overkill.
66 commandline --insert '*'
77 case "*!" "!"
88- set -l last_cmd $history[1]
99- set -l tokenized (string split ' ' -- $last_cmd)
1010- commandline --current-token -- (string join ' ' $tokenized[2..])
88+ set -l last_cmdline $history[1]
99+1010+ # pull out the last command's argv[0] plus any whitespace
1111+ echo $last_cmdline | read --tokenize --array tokenized_last_cmd
1212+ set -l cmd '^'(string escape --style=regex $tokenized_last_cmd[1])'\s+'
1313+1414+ commandline --current-token -- (string replace --regex $cmd '' -- $last_cmdline)
1115 commandline --function repaint
1216 case "*"
1317 commandline --insert '*'
···11+function iterm2
22+ set -l dir $PWD
33+ if test (count $argv) -gt 0
44+ if test -d $argv[1]
55+ set dir (realpath $argv[1])
66+ else
77+ set dir (realpath (dirname $argv[1]))
88+ end
99+ end
1010+1111+ osascript \
1212+ -e 'tell application "iTerm2" to open "'$dir'"' \
1313+ -e return
1414+end