fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
492 B8 linesraw
1# localization: skip(private)
2function __fish_complete_proc
3    # "comm=" means "print comm field with an empty name", which causes the header to be removed.
4    # On many systems, comm is truncated (e.g. on Linux it's 15 chars),
5    # but that's okay since commands that accept them as argument also only use those (e.g. pgrep).
6    # String removes zombies (ones in parentheses) and padding (macOS adds some apparently).
7    __fish_ps -o comm= | string match -rv '\(.*\)' | string trim
8end