dots: public mirror (history reset after licence cleanup)
This commit is contained in:
commit
693822ad5f
226 files changed
+22502
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Mark the tmux window when a long shell command finishes, through the same
|
||||
# ~/.config/tmux/scripts/agent-state.sh the coding agents use (tool tag "sh"):
|
||||
# ✓ on exit 0, ! on failure — coloured when it happened while you were elsewhere, grey once
|
||||
# visited, gone at the next command. Only commands longer than $agent_state_min_ms
|
||||
# (default 30 s) count, and interactive programs are skipped: the agents mark themselves,
|
||||
# and quitting a long nvim or lazygit session is not news. No-op outside tmux.
|
||||
set -q agent_state_min_ms; or set -g agent_state_min_ms 30000
|
||||
|
||||
function __agent_state_preexec --on-event fish_preexec
|
||||
set -q TMUX_PANE; or return
|
||||
~/.config/tmux/scripts/agent-state.sh sh busy
|
||||
end
|
||||
|
||||
function __agent_state_postexec --on-event fish_postexec
|
||||
set -l st $status # first statement: anything before it would clobber the command's status
|
||||
set -q TMUX_PANE; or return
|
||||
test "$CMD_DURATION" -gt "$agent_state_min_ms"; or return
|
||||
switch (string split -m1 ' ' -- $argv[1])[1]
|
||||
case nvim vim vi less man lazygit ssh mosh tmux claude claudes pi opencode opencodes codex aichat htop btop top journalctl tail watch
|
||||
return
|
||||
end
|
||||
if test $st -eq 0
|
||||
~/.config/tmux/scripts/agent-state.sh sh done
|
||||
else
|
||||
~/.config/tmux/scripts/agent-state.sh sh error
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
if test -z "$SSH_ENV"
|
||||
set -xg SSH_ENV $HOME/.ssh/environment
|
||||
end
|
||||
|
||||
if not __ssh_agent_is_started
|
||||
__ssh_agent_start
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
set --global fish_key_bindings fish_vi_key_bindings
|
||||
|
||||
set --erase --universal fish_key_bindings
|
||||
@@ -0,0 +1,38 @@
|
||||
set --global fish_color_autosuggestion 4D5566
|
||||
set --global fish_color_cancel -r
|
||||
set --global fish_color_command 39BAE6
|
||||
set --global fish_color_comment 626A73
|
||||
set --global fish_color_cwd 59C2FF
|
||||
set --global fish_color_cwd_root red
|
||||
set --global fish_color_end F29668
|
||||
set --global fish_color_error FF3333
|
||||
set --global fish_color_escape 95E6CB
|
||||
set --global fish_color_history_current --bold
|
||||
set --global fish_color_host normal
|
||||
set --global fish_color_host_remote yellow
|
||||
set --global fish_color_keyword 39BAE6
|
||||
set --global fish_color_match F07178
|
||||
set --global fish_color_normal B3B1AD
|
||||
set --global fish_color_operator E6B450
|
||||
set --global fish_color_option B3B1AD
|
||||
set --global fish_color_param B3B1AD
|
||||
set --global fish_color_quote C2D94C
|
||||
set --global fish_color_redirection FFEE99
|
||||
set --global fish_color_search_match --background=E6B450
|
||||
set --global fish_color_selection --background=E6B450
|
||||
set --global fish_color_status red
|
||||
set --global fish_color_user brgreen
|
||||
set --global fish_color_valid_path --underline
|
||||
set --global fish_pager_color_background
|
||||
set --global fish_pager_color_completion normal
|
||||
set --global fish_pager_color_description B3A06D yellow
|
||||
set --global fish_pager_color_prefix normal --bold --underline
|
||||
set --global fish_pager_color_progress brwhite --background=cyan
|
||||
set --global fish_pager_color_secondary_background
|
||||
set --global fish_pager_color_secondary_completion
|
||||
set --global fish_pager_color_secondary_description
|
||||
set --global fish_pager_color_secondary_prefix
|
||||
set --global fish_pager_color_selected_background --background=E6B450
|
||||
set --global fish_pager_color_selected_completion
|
||||
set --global fish_pager_color_selected_description
|
||||
set --global fish_pager_color_selected_prefix
|
||||
@@ -0,0 +1,7 @@
|
||||
# fnm — single init for all hosts (config.fish must NOT source fnm again:
|
||||
# every `fnm env | source` mints a fresh multishell dir onto PATH).
|
||||
# fnm may be pacman-installed (on PATH) or self-installed under ~/.local/share/fnm.
|
||||
test -d "$HOME/.local/share/fnm"; and fish_add_path -g "$HOME/.local/share/fnm"
|
||||
if command -q fnm
|
||||
fnm env --use-on-cd --version-file-strategy local --shell fish | source
|
||||
end
|
||||
@@ -0,0 +1,20 @@
|
||||
# Drop kitty's KITTY_PUBLIC_KEY from the shell environment.
|
||||
#
|
||||
# kitty generates a random 40-char base85 public key per instance and exports it
|
||||
# to every child (kitty/child.py). It is only read on the password path of kitty
|
||||
# remote control (kitty/remote_control.py: "Password usage requested but
|
||||
# KITTY_PUBLIC_KEY environment variable is not available"), which needs
|
||||
# allow_remote_control — not enabled here. `kitten ssh`, icat, clipboard and
|
||||
# shell integration never touch it.
|
||||
#
|
||||
# Why bother: tools that inline the environment into generated code get corrupted
|
||||
# when a value contains a String.replace replacement sequence. prettier's
|
||||
# --experimental-cli inlines JSON.stringify(process.env) into its parallel worker
|
||||
# and splices it with .replace(placeholder, bootloader); a `$` + backtick in the
|
||||
# key expands to "everything before the match", injecting the worker's own source
|
||||
# mid-string. Every file then fails with a bogus
|
||||
# "SyntaxError: Unexpected identifier 'string'". Roughly a 1-in-185 chance per
|
||||
# kitty launch, which is exactly as fun to debug as it sounds.
|
||||
if set -q KITTY_PUBLIC_KEY
|
||||
set -e KITTY_PUBLIC_KEY
|
||||
end
|
||||
Reference in new issue
Block a user