10 lines
		
	
	
		
			175 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			175 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# Interactively select a process to kill.
 | 
						|
 | 
						|
pid=$(ps -ef | sed 1d | fzf -m | awk '{print $2}')
 | 
						|
 | 
						|
if [[ -n $pid ]]; then
 | 
						|
  xargs kill -${1:-9} <<< "$pid"
 | 
						|
fi
 |