Define fish function, ptree
Get all pstree outputs for a given process name. Usage: ```fish > ptree ssh-agent ``` I'm unsure if I like home-managers; I'd prefer defining this functions in a functions.fish file for a few reasons: - I like syntax highlighting. - home-manager compiles this into poorly formatted fish code.
This commit is contained in:
		
							parent
							
								
									c2522a1b7a
								
							
						
					
					
						commit
						2695eae15d
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -105,6 +105,15 @@ | |||
|       sysust = "systemctl --user status"; | ||||
|     }; | ||||
|     promptInit = builtins.readFile ../fish/prompt.fish; | ||||
|     functions = { | ||||
|       ptree = { | ||||
|         body = '' | ||||
|           for pid in (pgrep $argv[1]) | ||||
|             pstree -s -p $pid | ||||
|           end | ||||
|         ''; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   programs.fzf = rec { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue