Skip to content

Commit 22dd684

Browse files
committed
[Search processes] add gif and shorten field name for ppid to PARENT
1 parent 4f926c3 commit 22dd684

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Use `fzf.fish` to interactively find and insert the shell entities listed below
6060

6161
### Process ids
6262

63+
![gif processes](images/processes.gif)
64+
6365
- **Search input:** the pid and command of all running processes, outputted by `ps`
6466
- **Key binding and mnemonic:** <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>P</kbd> (`P` for process)
6567
- **Preview window:** the CPU usage, memory usage, start time, and other information about the process

functions/_fzf_search_processes.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function _fzf_search_processes --description "Search all running processes. Replace the current token with the pid of the selected process."
22
# use all caps to be consistent with ps default format
33
# snake_case because ps doesn't seem to allow spaces in the field names
4-
set ps_preview_fmt (string join ',' 'pid' 'ppid=PARENT_PID' 'user' '%cpu' 'rss=RSS_IN_KB' 'start=START_TIME' 'command')
4+
set ps_preview_fmt (string join ',' 'pid' 'ppid=PARENT' 'user' '%cpu' 'rss=RSS_IN_KB' 'start=START_TIME' 'command')
55
set processes_selected (
66
ps -A -opid,command | \
77
_fzf_wrapper --multi \

images/processes.gif

1010 KB
Loading

0 commit comments

Comments
 (0)