Skip to content

Commit

Permalink
🐛 Fix #17, support darwin's ps
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Apr 16, 2024
1 parent 99fcddd commit 48ab220
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sources/ps.zsh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48ab220

Please sign in to comment.