From 1b8b0085de0686ee402ef39d5646c0def8d41c0b Mon Sep 17 00:00:00 2001 From: jyn Date: Sat, 30 Nov 2024 02:34:10 -0500 Subject: [PATCH] misc improvements --- config/gitconfig | 1 + config/profile | 2 +- config/zshrc | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/gitconfig b/config/gitconfig index 1926e50..09b2fcc 100644 --- a/config/gitconfig +++ b/config/gitconfig @@ -33,6 +33,7 @@ fetch-update = !git fetch upstream && git rebase upstream/HEAD rdiff = range-diff --check upstream/HEAD @{u} HEAD update = !git fetch-update && git rdiff && read -p "'push? [y/N] '" REPLY && [ \"$REPLY\" = y ] && git pf + new = !git fetch upstream && git checkout upstream/HEAD && git checkout -b up = update a = add b = branch diff --git a/config/profile b/config/profile index 0f99b42..6a38fd1 100644 --- a/config/profile +++ b/config/profile @@ -358,7 +358,7 @@ export BAT_STYLE=changes,header,rule export GOPATH=~/.local/lib/go export GOBIN="$GOPATH/bin" export CARGO_MOMMYS_MOODS=ominous -export FZF_DEFAULT_OPTS='--tmux --cycle --exit-0 --select-1 --preview-window=wrap' +export FZF_DEFAULT_OPTS='--cycle --exit-0 --select-1 --preview-window=wrap' # git treats `diff.external` extremely poorly; there's no way to unset it temporarily because `-c diff.external` tries to run an empty program. # instead, set this through an external env variable so we can unset it with `env -u`. diff --git a/config/zshrc b/config/zshrc index 199eef3..57004a6 100644 --- a/config/zshrc +++ b/config/zshrc @@ -1,6 +1,9 @@ #!/usr/bin/env zsh # docs: https://zsh.sourceforge.io/Doc/Release/index.html#Top # to see the keymap, `bindkey` (-M for a specific keymap) +# to see all completions, `echo $_comps`. for a specific completion, `which _ls` *usually* works. +# to debug a specific completion, `C-x ? Up` +# to see all functions, `print -l ${(ok)functions}` # running time on functions: `time (foo)` # (unfortunately this can't be fixed automatically because `time` takes a whole pipeline as an argument, not a normal list of shell words) @@ -173,7 +176,7 @@ zstyle ':completion:*' verbose true zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' -zstyle ':completion:*:gdb:*' command 'ps -A -o pid,tty,cmd' +zstyle ':completion:*:gdb:*' command 'ps --ppid 2 --pid 2 --deselect -o pid,tty,cmd' zstyle ':completion:*' rehash true COMPLETION=/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh