2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-24 02:35:55 +00:00
fish-shell/share/functions/__fish_print_xwindows.fish

4 lines
192 B
Fish
Raw Normal View History

function __fish_print_xwindows --description 'Print X windows'
xwininfo -root -children | sed '/^\s\+0x/!d; /(has no name)/d; s/^\s*\(\S\+\)\s\+"\(.\+\)":\s\+(\(.*\)).*$/\1\t\2 (\3)/'
end