Skip to content

Commit

Permalink
[sh] Add improved ps completion
Browse files Browse the repository at this point in the history
kneitinger committed Feb 3, 2024

Verified

This commit was signed with the committer’s verified signature.
andrewnester Andrew Nester
1 parent 1113237 commit 8baf371
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -33,6 +33,13 @@ zstyle :compinstall filename '/home/leaf/.zshrc'
# Remove need to manually execute `rehash` after changes to $PATH
zstyle ':completion:*' rehash true

# Find ALL user procs when tab completeing procs
# shellcheck disable=SC2016
zstyle ':completion:*:processes' command 'NOCOLORS=1 ps -U $(whoami)|sed "/ps/d"'
zstyle ':completion:*:processes' insert-ids menu yes select
zstyle ':completion:*:processes-names' command 'NOCOLORS=1 ps xho command|sed "s/://g"'
zstyle ':completion:*:processes' sort false

if type brew &>/dev/null; then
# shellcheck disable=SC2206
fpath=("$(brew --prefix)/share/zsh-completions" $fpath)

0 comments on commit 8baf371

Please sign in to comment.