mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 15:13:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			182 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			182 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
nuke() {
 | 
						|
  local pid
 | 
						|
  pid=$(ps -ef | grep -v ^root | sed 1d | fzf -m | awk '{print $2}')
 | 
						|
 | 
						|
  if [ "x$pid" != "x" ]
 | 
						|
  then
 | 
						|
    echo $pid | xargs kill -${1:-9}
 | 
						|
  fi
 | 
						|
}
 | 
						|
 | 
						|
nuke
 |