diff --git a/sources/ps.zsh b/sources/ps.zsh index ca82a4d..3b9bd9f 100644 --- a/sources/ps.zsh +++ b/sources/ps.zsh @@ -1,3 +1,6 @@ # :fzf-tab:complete:(\\|*/|)(kill|ps):argument-rest --preview-window=down:3:wrap +if [[ $OSTYPE == darwin ]]; then + alias -g --no-headers='| head -n1' +fi [[ $group == 'process ID' ]] && - ps -p$word -wocmd --no-headers | bat -lsh + ps -p$word -wocommand --no-headers | bat -lsh